nixpkgs-ml-tools

nixpkgs mailing list tools
git clone git://jb55.com/nixpkgs-ml-tools
Log | Files | Refs | README | LICENSE

default.nix (656B)


      1 { pkgs ? import (fetchTarball "https://github.com/nixos/nixpkgs/archive/d9c6f13e13f8cfe9adcb9dc5f7191336d0d8e8a7.tar.gz") {} }:
      2 
      3 let drv =
      4 
      5 { lib, stdenv, b4, notmuch, makeWrapper }:
      6 let paths = lib.makeBinPath [ b4 notmuch ];
      7 in
      8 stdenv.mkDerivation {
      9   name = "nixpkgs-ml-tools";
     10   version = "0.1";
     11 
     12   src = pkgs.nix-gitignore.gitignoreSource [] ./.;
     13 
     14   nativeBuildInputs = [ makeWrapper ];
     15 
     16   makeFlags = [ "PREFIX=$(out)" ];
     17 
     18   postInstall = ''
     19     bins="$(find $out/bin -type f -executable -print)"
     20     for bin in $bins
     21     do
     22       patchShebangs "$bin"
     23       wrapProgram "$bin" --prefix PATH : "${paths}"
     24     done
     25   '';
     26 };
     27 
     28 in pkgs.callPackage drv {}