nixpkgs/pkgs/tools/package-management/nix-index/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, curl, sqlite
, Security
2018-10-12 17:04:19 +00:00
}:
2017-07-23 21:09:54 +00:00
2018-10-12 17:04:19 +00:00
rustPlatform.buildRustPackage rec {
2019-08-31 11:41:23 +00:00
pname = "nix-index";
2024-05-29 03:13:50 +00:00
version = "0.1.8";
2017-07-23 21:09:54 +00:00
src = fetchFromGitHub {
owner = "nix-community";
2017-07-23 21:09:54 +00:00
repo = "nix-index";
rev = "v${version}";
2024-05-29 03:13:50 +00:00
hash = "sha256-r3Vg9ox953HdUp5Csxd2DYUyBe9u61fmA94PpcAZRqo=";
2017-07-23 21:09:54 +00:00
};
2024-05-29 03:13:50 +00:00
cargoHash = "sha256-c1Ivsj9of/cjEKU0lo4I9BfIUQZ3pPf2QF9fAlZTQn0=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl curl sqlite ]
2021-01-15 09:19:50 +00:00
++ lib.optional stdenv.isDarwin Security;
2017-07-23 21:09:54 +00:00
postInstall = ''
substituteInPlace command-not-found.sh \
--subst-var out
install -Dm555 command-not-found.sh -t $out/etc/profile.d
2017-07-23 21:09:54 +00:00
'';
meta = with lib; {
2017-07-23 21:09:54 +00:00
description = "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";
2017-07-23 21:09:54 +00:00
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ bennofs figsoda ncfavier ];
2017-07-23 21:09:54 +00:00
};
}