1 { lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, curl, sqlite
5 rustPlatform.buildRustPackage rec {
9 src = fetchFromGitHub {
10 owner = "nix-community";
13 hash = "sha256-r3Vg9ox953HdUp5Csxd2DYUyBe9u61fmA94PpcAZRqo=";
16 cargoHash = "sha256-c1Ivsj9of/cjEKU0lo4I9BfIUQZ3pPf2QF9fAlZTQn0=";
18 nativeBuildInputs = [ pkg-config ];
19 buildInputs = [ openssl curl sqlite ]
20 ++ lib.optional stdenv.hostPlatform.isDarwin Security;
23 substituteInPlace command-not-found.sh \
25 install -Dm555 command-not-found.sh -t $out/etc/profile.d
29 description = "Files database for nixpkgs";
30 homepage = "https://github.com/nix-community/nix-index";
31 changelog = "https://github.com/nix-community/nix-index/blob/${src.rev}/CHANGELOG.md";
32 license = with licenses; [ bsd3 ];
33 maintainers = with maintainers; [ bennofs figsoda ncfavier ];