fork/nix-index
git clone https://git.julia.blue/fork/nix-index
5f3240f
v0.1.1
1let 2# nixpkgs-unstable at 2017-07-21 12:12 3nixpkgsRev = "1d78df27294017d464e60bf9b0595e7e42cfca55" ; 4defaultNixpkgs = builtins . fetchTarball "github.com/NixOS/nixpkgs/archive/ ${ nixpkgsRev } .tar.gz" ; 5in 6{ nixpkgs ? defaultNixpkgs } : 7 8with ( import nixpkgs {}); with rustPlatform ; 9 10let 11registry = rustRegistry . overrideAttrs ( old :{ 12name = "rustRegistry-2017-07-21" ; 13src = fetchFromGitHub { 14owner = "rust-lang" ; 15repo = "crates.io-index" ; 16rev = "25ee65416ccd75fd0bdbcc31affb119513dd2951" ; 17sha256 = "1y2mlj31xpzw5h2l4rl1r74gc58lagqsmcmfj0fjgmjzv7glqcwz" ; 18}; 19}); 20in buildRustPackage rec { 21name = "nix-index- ${ version } " ; 22version = "0.1.0" ; 23 24rustRegistry = registry ; 25 26src = builtins . filterSource ( name :type :! lib . hasPrefix "target" ( baseNameOf name ) && ! lib . hasPrefix "result" ( baseNameOf name ) && name != ".git" ) ./. ; 27depsSha256 = "0v145fi9bfiwvsdy7hz9lw4m2f2j8sxvixfzmjwfnq4klm51c8yl" ; 28buildInputs = [ pkgconfig openssl curl ]; 29 30postInstall = '' 31mkdir -p $ out /etc/profile.d 32cp ${ ./command-not-found.sh } $ out /etc/profile.d/command-not-found.sh 33substituteInPlace $ out /etc/profile.d/command-not-found.sh \ 34--replace "@out@" " $ out " 35'' ; 36 37meta = with stdenv . lib ; { 38description = "A files database for nixpkgs" ; 39homepage = https://github.com/bennofs/nix-index ; 40license = with licenses ; [ bsd3 ]; 41maintainers = [ maintainers . bennofs ]; 42platforms = platforms . all ; 43}; 44}