3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #153229 from prusnak/nix-index

nix-index: 0.1.2 -> unstable-2022-03-07
This commit is contained in:
Pavol Rusnak 2022-03-14 10:50:18 +01:00 committed by GitHub
commit 0745b85dbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,23 +4,21 @@
rustPlatform.buildRustPackage rec {
pname = "nix-index";
version = "0.1.2";
version = "unstable-2022-03-07";
src = fetchFromGitHub {
owner = "bennofs";
repo = "nix-index";
rev = "v${version}";
sha256 = "05fqfwz34n4ijw7ydw2n6bh4bv64rhks85cn720sy5r7bmhfmfa8";
rev = "f09548f66790d2d7d53f07ad2af62993d7cabb08";
sha256 = "sha256-xIJCzEHQJ2kHRbT4Ejrb5R5e/VqjKrklV7XneZIiyUg=";
};
cargoSha256 = "161lz96a52s53rhhkxxhcg41bsmh8w6rv6nl8gwqmg3biszy7hah";
cargoSha256 = "sha256-2Yhnacsx8EWsfZfcfKhV687cblyFDmsfdqGZoK6Lulo=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl curl ]
++ lib.optional stdenv.isDarwin Security;
doCheck = !stdenv.isDarwin;
postInstall = ''
mkdir -p $out/etc/profile.d
cp ./command-not-found.sh $out/etc/profile.d/command-not-found.sh