From 0e69d956f5fc20546d0a96a3891d6dd29942468b Mon Sep 17 00:00:00 2001 From: polwex Date: Fri, 31 Jan 2025 01:55:31 +0700 Subject: config for wayland on nvidia --- derivations/windsurf/windsurf.nix | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 derivations/windsurf/windsurf.nix (limited to 'derivations/windsurf/windsurf.nix') diff --git a/derivations/windsurf/windsurf.nix b/derivations/windsurf/windsurf.nix new file mode 100644 index 0000000..237be28 --- /dev/null +++ b/derivations/windsurf/windsurf.nix @@ -0,0 +1,41 @@ +{ + lib, + stdenv, + nixpkgs, + callPackage, + fetchurl, + nixosTests, + commandLineArgs ? "", + useVSCodeRipgrep ? stdenv.hostPlatform.isDarwin, +}: +# https://windsurf-stable.codeium.com/api/update/linux-x64/stable/latest +let + version = "1.2.2"; # "windsurfVersion" + hash = "be4251dfb74e60e80fa973d61f3505da1ac9032e"; # "version" +in + callPackage "${nixpkgs}/pkgs/applications/editors/vscode/generic.nix" rec { + inherit commandLineArgs useVSCodeRipgrep version; + + pname = "windsurf"; + + executableName = "windsurf"; + longName = "Windsurf"; + shortName = "windsurf"; + + src = fetchurl { + url = "https://windsurf-stable.codeiumdata.com/linux-x64/stable/${hash}/Windsurf-linux-x64-${version}.tar.gz"; + hash = "sha256-s53azwr+bO7UHVAq0iydP09z7ZK9rvF2P7NKoGPmUMM="; + }; + + sourceRoot = "Windsurf"; + + tests = nixosTests.vscodium; + + updateScript = "nil"; + + meta = { + description = "The first agentic IDE, and then some"; + }; + } +# https://windsurf-stable.codeiumdata.com/linux-x64/stable/be4251dfb74e60e80fa973d61f3505da1ac9032e/Windsurf-linux-x64-1.2.2.tar.gz + -- cgit v1.2.3