git-email-contacts

email yourself patches from git-contacts
git clone git://jb55.com/git-email-contacts
Log | Files | Refs | README | LICENSE

default.nix (538B)


      1 { lib, stdenv, gitFull, bashInteractive, coreutils, xonsh, makeWrapper }:
      2 let paths = lib.makeBinPath [ gitFull coreutils bashInteractive ];
      3 in
      4 stdenv.mkDerivation {
      5   name = "git-email-contacts";
      6   version = "0.1";
      7 
      8   src = ./.;
      9 
     10   nativeBuildInputs = [ makeWrapper ];
     11   buildInputs = [ xonsh ];
     12 
     13   installPhase = ''
     14     mkdir -p $out/bin
     15     cp git-email-contacts $out/bin
     16     patchShebangs
     17     wrapProgram $out/bin/git-email-contacts --prefix PATH : "${paths}:${gitFull}/share/git/contrib/contacts:${gitFull}/libexec/git-core"
     18   '';
     19 }