lol

crate2nix: 0.10.0 -> 0.11.0

...and add shell completions for bash/zsh

authored by

Peter Kolloch and committed by
Adam Joseph
7b9fa5f6 4fc0e336

+13 -5
+13 -5
pkgs/development/tools/rust/crate2nix/default.nix
··· 10 10 11 11 rustPlatform.buildRustPackage rec { 12 12 pname = "crate2nix"; 13 - version = "0.10.0"; 13 + version = "0.11.0"; 14 14 15 15 src = fetchFromGitHub { 16 - owner = "kolloch"; 16 + owner = "nix-community"; 17 17 repo = pname; 18 18 rev = version; 19 - sha256 = "sha256-JaF9/H3m4Wrc5MtXcONkOAgKVkswLVw0yZe0dBr2e4Y="; 19 + sha256 = "sha256-nyX1lfaA0eBSB/BaxPzCsyD8p/hxCwNIvr4Ru3i/YX0="; 20 20 }; 21 21 22 22 sourceRoot = "${src.name}/crate2nix"; 23 23 24 - cargoSha256 = "sha256-PD7R1vcb3FKd4hfpViKyvfCExJ5H1Xo2HPYden5zpxQ="; 24 + cargoSha256 = "sha256-3+emOr3hh+DDkboJbYyJFZgkzmcdA9jdronz7wM4x28="; 25 25 26 26 nativeBuildInputs = [ makeWrapper ]; 27 27 ··· 32 32 postFixup = '' 33 33 wrapProgram $out/bin/crate2nix \ 34 34 --suffix PATH ":" ${lib.makeBinPath [ cargo nix nix-prefetch-git ]} 35 + 36 + rm -rf $out/lib $out/bin/crate2nix.d 37 + mkdir -p \ 38 + $out/share/bash-completion/completions \ 39 + $out/share/zsh/vendor-completions 40 + $out/bin/crate2nix completions -s 'bash' -o $out/share/bash-completion/completions 41 + $out/bin/crate2nix completions -s 'zsh' -o $out/share/zsh/vendor-completions 35 42 ''; 36 43 37 44 meta = with lib; { ··· 40 47 Crate2nix generates Nix files from Cargo.toml/lock files 41 48 so that you can build every crate individually in a Nix sandbox. 42 49 ''; 43 - homepage = "https://github.com/kolloch/crate2nix"; 50 + homepage = "https://github.com/nix-community/crate2nix"; 44 51 license = licenses.asl20; 45 52 maintainers = with maintainers; [ kolloch cole-h ]; 46 53 platforms = platforms.all; 47 54 }; 48 55 } 56 +