From 32ad702bf48a494765f2912eff39e09c07bfb4be Mon Sep 17 00:00:00 2001 From: Alexandre Acebedo Date: Mon, 3 Jun 2024 21:26:26 +0200 Subject: glrnvim: init at 1.4.0 --- pkgs/by-name/gl/glrnvim/package.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/by-name/gl/glrnvim/package.nix (limited to 'pkgs/by-name') diff --git a/pkgs/by-name/gl/glrnvim/package.nix b/pkgs/by-name/gl/glrnvim/package.nix new file mode 100644 index 0000000000000..d855c419ed45d --- /dev/null +++ b/pkgs/by-name/gl/glrnvim/package.nix @@ -0,0 +1,33 @@ +{ + lib, + stdenv, + fetchFromGitHub, + rustPlatform, +}: + +rustPlatform.buildRustPackage rec { + pname = "glrnvim"; + version = "1.4.0"; + + src = fetchFromGitHub { + owner = "beeender"; + repo = "glrnvim"; + rev = "v${version}"; + sha256 = "sha256-n3t3s3fzmBGXRDydYxNJ13itKul8dyLNW6HP8Di4hY0="; + }; + + cargoHash = "sha256-cHEse+pXwgPTL8GJyY4s1mhWXGTY8Fnn2rFpA5SNerY="; + + postInstall = '' + install -Dm644 glrnvim.desktop -t $out/share/applications + install -Dm644 glrnvim.svg $out/share/icons/hicolor/scalable/apps/glrnvim.svg + ''; + + meta = { + description = "Really fast & stable neovim GUI which could be accelerated by GPU"; + homepage = "https://github.com/beeender/glrnvim"; + mainProgram = "glrnvim"; + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ aacebedo ]; + }; +} -- cgit 1.4.1 From 5b3f2eaaa8be8d623541b2df0d93fb8fe9582853 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 30 Jun 2024 10:57:26 +0000 Subject: ast-grep: 0.23.0 -> 0.24.1 --- pkgs/by-name/as/ast-grep/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkgs/by-name') diff --git a/pkgs/by-name/as/ast-grep/package.nix b/pkgs/by-name/as/ast-grep/package.nix index e5ffcc27b2ce1..644ef2e284ca0 100644 --- a/pkgs/by-name/as/ast-grep/package.nix +++ b/pkgs/by-name/as/ast-grep/package.nix @@ -7,16 +7,16 @@ rustPlatform.buildRustPackage rec { pname = "ast-grep"; - version = "0.23.0"; + version = "0.24.1"; src = fetchFromGitHub { owner = "ast-grep"; repo = "ast-grep"; rev = version; - hash = "sha256-QW3ZwALvfSTcvXuH/ploqUD1UJ5fGySIAc3N/TMlB4g="; + hash = "sha256-kNPmtaUb5rMbdTlNKD3PrInuxGQt/JamMDx8BwBxVd8="; }; - cargoHash = "sha256-MUdHDP+1KQBXy2itOhW6pDuOTwIwXHy4oDfifDRdM94="; + cargoHash = "sha256-iV2GXH7opNIyWsgi0EnRIXDhJd3s66qFhnZWawBPb6g="; nativeBuildInputs = [ installShellFiles ]; -- cgit 1.4.1 From a8963a20604fa05e2f0546d13c28575a2b0cef1c Mon Sep 17 00:00:00 2001 From: Ilan Joselevich Date: Sun, 30 Jun 2024 18:26:08 +0300 Subject: crate2nix: move to pkgs/by-name --- pkgs/by-name/cr/crate2nix/package.nix | 57 +++++++++++++++++++++++ pkgs/development/tools/rust/crate2nix/default.nix | 57 ----------------------- pkgs/top-level/all-packages.nix | 2 - 3 files changed, 57 insertions(+), 59 deletions(-) create mode 100644 pkgs/by-name/cr/crate2nix/package.nix delete mode 100644 pkgs/development/tools/rust/crate2nix/default.nix (limited to 'pkgs/by-name') diff --git a/pkgs/by-name/cr/crate2nix/package.nix b/pkgs/by-name/cr/crate2nix/package.nix new file mode 100644 index 0000000000000..f8de08eeeade2 --- /dev/null +++ b/pkgs/by-name/cr/crate2nix/package.nix @@ -0,0 +1,57 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, makeWrapper + +, cargo +, nix +, nix-prefetch-git +}: + +rustPlatform.buildRustPackage rec { + pname = "crate2nix"; + version = "0.14.1"; + + src = fetchFromGitHub { + owner = "nix-community"; + repo = pname; + rev = version; + hash = "sha256-esWhRnt7FhiYq0CcIxw9pvH+ybOQmWBfHYMtleaMhBE="; + }; + + sourceRoot = "${src.name}/crate2nix"; + + cargoHash = "sha256-nQ1VUCFMmpWZWvKFbyJFIZUJ24N9ZPY8JCHWju385NE="; + + nativeBuildInputs = [ makeWrapper ]; + + # Tests use nix(1), which tries (and fails) to set up /nix/var inside the + # sandbox + doCheck = false; + + postFixup = '' + wrapProgram $out/bin/crate2nix \ + --suffix PATH ":" ${lib.makeBinPath [ cargo nix nix-prefetch-git ]} + + rm -rf $out/lib $out/bin/crate2nix.d + mkdir -p \ + $out/share/bash-completion/completions \ + $out/share/zsh/vendor-completions + $out/bin/crate2nix completions -s 'bash' -o $out/share/bash-completion/completions + $out/bin/crate2nix completions -s 'zsh' -o $out/share/zsh/vendor-completions + ''; + + meta = with lib; { + description = "Nix build file generator for Rust crates"; + mainProgram = "crate2nix"; + longDescription = '' + Crate2nix generates Nix files from Cargo.toml/lock files + so that you can build every crate individually in a Nix sandbox. + ''; + homepage = "https://github.com/nix-community/crate2nix"; + license = licenses.asl20; + maintainers = with maintainers; [ kolloch cole-h ]; + platforms = platforms.all; + }; +} + diff --git a/pkgs/development/tools/rust/crate2nix/default.nix b/pkgs/development/tools/rust/crate2nix/default.nix deleted file mode 100644 index f8de08eeeade2..0000000000000 --- a/pkgs/development/tools/rust/crate2nix/default.nix +++ /dev/null @@ -1,57 +0,0 @@ -{ lib -, rustPlatform -, fetchFromGitHub -, makeWrapper - -, cargo -, nix -, nix-prefetch-git -}: - -rustPlatform.buildRustPackage rec { - pname = "crate2nix"; - version = "0.14.1"; - - src = fetchFromGitHub { - owner = "nix-community"; - repo = pname; - rev = version; - hash = "sha256-esWhRnt7FhiYq0CcIxw9pvH+ybOQmWBfHYMtleaMhBE="; - }; - - sourceRoot = "${src.name}/crate2nix"; - - cargoHash = "sha256-nQ1VUCFMmpWZWvKFbyJFIZUJ24N9ZPY8JCHWju385NE="; - - nativeBuildInputs = [ makeWrapper ]; - - # Tests use nix(1), which tries (and fails) to set up /nix/var inside the - # sandbox - doCheck = false; - - postFixup = '' - wrapProgram $out/bin/crate2nix \ - --suffix PATH ":" ${lib.makeBinPath [ cargo nix nix-prefetch-git ]} - - rm -rf $out/lib $out/bin/crate2nix.d - mkdir -p \ - $out/share/bash-completion/completions \ - $out/share/zsh/vendor-completions - $out/bin/crate2nix completions -s 'bash' -o $out/share/bash-completion/completions - $out/bin/crate2nix completions -s 'zsh' -o $out/share/zsh/vendor-completions - ''; - - meta = with lib; { - description = "Nix build file generator for Rust crates"; - mainProgram = "crate2nix"; - longDescription = '' - Crate2nix generates Nix files from Cargo.toml/lock files - so that you can build every crate individually in a Nix sandbox. - ''; - homepage = "https://github.com/nix-community/crate2nix"; - license = licenses.asl20; - maintainers = with maintainers; [ kolloch cole-h ]; - platforms = platforms.all; - }; -} - diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a04271b7fac7c..f2c68b926c29d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16641,8 +16641,6 @@ with pkgs; cauwugo = callPackage ../development/tools/rust/cauwugo { }; - crate2nix = callPackage ../development/tools/rust/crate2nix { }; - critcmp = callPackage ../development/tools/rust/critcmp { }; devspace = callPackage ../development/tools/misc/devspace { }; -- cgit 1.4.1 From 62da9048d614e8c7f19657e58e9a02eff51a8ef2 Mon Sep 17 00:00:00 2001 From: Ilan Joselevich Date: Sun, 30 Jun 2024 18:33:25 +0300 Subject: crate2nix: rewrite expression --- pkgs/by-name/cr/crate2nix/package.nix | 45 ++++++++++++++++++++++------------- 1 file changed, 28 insertions(+), 17 deletions(-) (limited to 'pkgs/by-name') diff --git a/pkgs/by-name/cr/crate2nix/package.nix b/pkgs/by-name/cr/crate2nix/package.nix index f8de08eeeade2..12ce3f76edeb5 100644 --- a/pkgs/by-name/cr/crate2nix/package.nix +++ b/pkgs/by-name/cr/crate2nix/package.nix @@ -2,10 +2,11 @@ , rustPlatform , fetchFromGitHub , makeWrapper - , cargo , nix , nix-prefetch-git +, installShellFiles +, }: rustPlatform.buildRustPackage rec { @@ -19,26 +20,33 @@ rustPlatform.buildRustPackage rec { hash = "sha256-esWhRnt7FhiYq0CcIxw9pvH+ybOQmWBfHYMtleaMhBE="; }; - sourceRoot = "${src.name}/crate2nix"; + sourceRoot = "${src.name}/${pname}"; cargoHash = "sha256-nQ1VUCFMmpWZWvKFbyJFIZUJ24N9ZPY8JCHWju385NE="; - nativeBuildInputs = [ makeWrapper ]; + nativeBuildInputs = [ + makeWrapper + installShellFiles + ]; - # Tests use nix(1), which tries (and fails) to set up /nix/var inside the - # sandbox + # Tests use nix(1), which tries (and fails) to set up /nix/var inside the sandbox. doCheck = false; - postFixup = '' - wrapProgram $out/bin/crate2nix \ - --suffix PATH ":" ${lib.makeBinPath [ cargo nix nix-prefetch-git ]} + postInstall = '' + wrapProgram $out/bin/${pname} \ + --prefix PATH ":" ${ + lib.makeBinPath [ + cargo + nix + nix-prefetch-git + ] + } - rm -rf $out/lib $out/bin/crate2nix.d - mkdir -p \ - $out/share/bash-completion/completions \ - $out/share/zsh/vendor-completions - $out/bin/crate2nix completions -s 'bash' -o $out/share/bash-completion/completions - $out/bin/crate2nix completions -s 'zsh' -o $out/share/zsh/vendor-completions + for shell in bash zsh fish + do + $out/bin/${pname} completions -s $shell + installShellCompletion ${pname}.$shell || installShellCompletion --$shell _${pname} + done ''; meta = with lib; { @@ -49,9 +57,12 @@ rustPlatform.buildRustPackage rec { so that you can build every crate individually in a Nix sandbox. ''; homepage = "https://github.com/nix-community/crate2nix"; + changelog = "https://nix-community.github.io/crate2nix/90_reference/90_changelog"; license = licenses.asl20; - maintainers = with maintainers; [ kolloch cole-h ]; - platforms = platforms.all; + maintainers = with maintainers; [ + kolloch + cole-h + kranzes + ]; }; } - -- cgit 1.4.1 From 5c44ad4d0d4c4f337b606ede1ec7220da051c47e Mon Sep 17 00:00:00 2001 From: Lite Ye Date: Mon, 24 Jun 2024 23:54:18 -0400 Subject: cloudflare-utils: init at 1.2.1 --- pkgs/by-name/cl/cloudflare-utils/package.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pkgs/by-name/cl/cloudflare-utils/package.nix (limited to 'pkgs/by-name') diff --git a/pkgs/by-name/cl/cloudflare-utils/package.nix b/pkgs/by-name/cl/cloudflare-utils/package.nix new file mode 100644 index 0000000000000..40e98dcedf79f --- /dev/null +++ b/pkgs/by-name/cl/cloudflare-utils/package.nix @@ -0,0 +1,25 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: +buildGoModule rec { + pname = "cloudflare-utils"; + version = "1.2.1"; + + src = fetchFromGitHub { + owner = "Cyb3r-Jak3"; + repo = "cloudflare-utils"; + rev = "v${version}"; + sha256 = "sha256-41TQ+St6U4exLSl4dwc1E6K8P+oqQ4m5RSI7L2/dWwI="; + }; + + vendorHash = "sha256-HE6x4KSe9b9ZzcYz7sP25aTeDGU4zXgkYm/1RwYYBt4="; + + meta = { + description = "Helpful Cloudflare utility program"; + homepage = "https://github.com/Cyb3r-Jak3/cloudflare-utils"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [yelite]; + }; +} -- cgit 1.4.1