nix-index: init at 0.1.0
This commit is contained in:
parent
adf756d4f7
commit
1d1735ce0f
32
pkgs/tools/package-management/nix-index/default.nix
Normal file
32
pkgs/tools/package-management/nix-index/default.nix
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{ lib, rustPlatform, fetchFromGitHub, pkgconfig, openssl, curl }:
|
||||||
|
|
||||||
|
with rustPlatform;
|
||||||
|
|
||||||
|
buildRustPackage rec {
|
||||||
|
name = "nix-index-${version}";
|
||||||
|
version = "0.1.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "bennofs";
|
||||||
|
repo = "nix-index";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1lmg65yqkwf2a5qxm3dmv8158kqhnriir062vlgar5wimf409rm5";
|
||||||
|
};
|
||||||
|
depsSha256 = "0v145fi9bfiwvsdy7hz9lw4m2f2j8sxvixfzmjwfnq4klm51c8yl";
|
||||||
|
buildInputs = [pkgconfig openssl curl];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mkdir -p $out/etc/profile.d
|
||||||
|
cp ./command-not-found.sh $out/etc/profile.d/command-not-found.sh
|
||||||
|
substituteInPlace $out/etc/profile.d/command-not-found.sh \
|
||||||
|
--replace "@out@" "$out"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A files database for nixpkgs";
|
||||||
|
homepage = https://github.com/bennofs/nix-index;
|
||||||
|
license = with licenses; [ bsd3 ];
|
||||||
|
maintainers = [ maintainers.bennofs ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}
|
@ -18674,6 +18674,8 @@ with pkgs;
|
|||||||
|
|
||||||
nix-bundle = callPackage ../tools/package-management/nix-bundle { nix = nixUnstable; };
|
nix-bundle = callPackage ../tools/package-management/nix-bundle { nix = nixUnstable; };
|
||||||
|
|
||||||
|
nix-index = callPackage ../tools/package-management/nix-index { };
|
||||||
|
|
||||||
inherit (callPackages ../tools/package-management/nix-prefetch-scripts { })
|
inherit (callPackages ../tools/package-management/nix-prefetch-scripts { })
|
||||||
nix-prefetch-bzr
|
nix-prefetch-bzr
|
||||||
nix-prefetch-cvs
|
nix-prefetch-cvs
|
||||||
|
Loading…
Reference in New Issue
Block a user