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