fork/nix-index

git clone https://git.julia.blue/fork/nix-index

Benno Fünfstückship(nix-index): bump version to 0.1.227f4c2b

v0.1.2
1.1 KiB32 linesraw
1let
2  # nixpkgs-unstable at 2018-08-20 14:43
3  nixpkgsRev = "0828e2d8c369604c56219bd7085256b984087280";
4  defaultNixpkgs = builtins.fetchTarball "github.com/NixOS/nixpkgs/archive/${nixpkgsRev}.tar.gz";
5in
6{ nixpkgs ? defaultNixpkgs }:
7
8with (import nixpkgs {}); with rustPlatform;
9
10buildRustPackage rec {
11  name = "nix-index-${version}";
12  version = "0.1.2";
13
14  src = builtins.filterSource (name: type: !lib.hasPrefix "target" (baseNameOf name) && !lib.hasPrefix "result" (baseNameOf name) && name != ".git") ./.;
15  cargoSha256 = "045qm7cyg3sdvf22i8b9cz8gsvggs5bn9xz8k1pvn5gxb7zj24cx";
16  buildInputs = [pkgconfig openssl curl];
17
18  postInstall = ''
19    mkdir -p $out/etc/profile.d
20    cp ${./command-not-found.sh} $out/etc/profile.d/command-not-found.sh
21    substituteInPlace $out/etc/profile.d/command-not-found.sh \
22      --replace "@out@" "$out"
23  '';
24
25  meta = with stdenv.lib; {
26    description = "A files database for nixpkgs";
27    homepage = https://github.com/bennofs/nix-index;
28    license = with licenses; [ bsd3 ];
29    maintainers = [ maintainers.bennofs ];
30    platforms = platforms.all;
31  };
32}