mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-07 04:57:26 +03:00
crate2nix: 0.10.0 -> 0.11.0
...and add shell completions for bash/zsh
This commit is contained in:
parent
4fc0e33698
commit
7b9fa5f6c3
@ -10,18 +10,18 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "crate2nix";
|
||||
version = "0.10.0";
|
||||
version = "0.11.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kolloch";
|
||||
owner = "nix-community";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-JaF9/H3m4Wrc5MtXcONkOAgKVkswLVw0yZe0dBr2e4Y=";
|
||||
sha256 = "sha256-nyX1lfaA0eBSB/BaxPzCsyD8p/hxCwNIvr4Ru3i/YX0=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/crate2nix";
|
||||
|
||||
cargoSha256 = "sha256-PD7R1vcb3FKd4hfpViKyvfCExJ5H1Xo2HPYden5zpxQ=";
|
||||
cargoSha256 = "sha256-3+emOr3hh+DDkboJbYyJFZgkzmcdA9jdronz7wM4x28=";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
@ -32,6 +32,13 @@ rustPlatform.buildRustPackage rec {
|
||||
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; {
|
||||
@ -40,9 +47,10 @@ rustPlatform.buildRustPackage rec {
|
||||
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/kolloch/crate2nix";
|
||||
homepage = "https://github.com/nix-community/crate2nix";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ kolloch cole-h ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user