mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 01:33:10 +00:00
d4889256e3
Diff: https://github.com/bennofs/nix-index/compare/v0.1.6...v0.1.7 Changelog: https://github.com/nix-community/nix-index/blob/v0.1.7/CHANGELOG.md
36 lines
1.0 KiB
Nix
36 lines
1.0 KiB
Nix
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, curl, sqlite
|
|
, Security
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "nix-index";
|
|
version = "0.1.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nix-community";
|
|
repo = "nix-index";
|
|
rev = "v${version}";
|
|
hash = "sha256-WPWd2aMuP4L17UDFz7SI6lqyrCzrPV8c88vGyO6r6jk=";
|
|
};
|
|
|
|
cargoHash = "sha256-zZhQ3pOid7BCGzcyCrl6sDm0q6IEVKF7K+d6nVs9flk=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ openssl curl sqlite ]
|
|
++ lib.optional stdenv.isDarwin Security;
|
|
|
|
postInstall = ''
|
|
substituteInPlace command-not-found.sh \
|
|
--subst-var out
|
|
install -Dm555 command-not-found.sh -t $out/etc/profile.d
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A files database for nixpkgs";
|
|
homepage = "https://github.com/nix-community/nix-index";
|
|
changelog = "https://github.com/nix-community/nix-index/blob/${src.rev}/CHANGELOG.md";
|
|
license = with licenses; [ bsd3 ];
|
|
maintainers = with maintainers; [ bennofs figsoda ncfavier ];
|
|
};
|
|
}
|