2015-09-25 20:56:28 +00:00
|
|
|
{ coreutils, gnugrep, gnused, fetchgit, jq, nix, stdenv, ... }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2015-09-26 04:02:56 +00:00
|
|
|
name = "get-1.1.0";
|
2015-09-25 20:56:28 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = http://cgit.cd.retiolum/get;
|
2015-09-26 04:02:56 +00:00
|
|
|
rev = "e75084e39f0402107bb520b5c9d5434a9d7f5d64";
|
|
|
|
sha256 = "5bafc9fa68cdb8ab76437a00354cbe4af4020cbbbbce848c325cae55863d9477";
|
2015-09-25 20:56:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
phases = [
|
|
|
|
"unpackPhase"
|
|
|
|
"installPhase"
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
let
|
|
|
|
path = stdenv.lib.makeSearchPath "bin" [
|
|
|
|
coreutils
|
|
|
|
gnugrep
|
|
|
|
gnused
|
|
|
|
jq
|
|
|
|
nix
|
|
|
|
];
|
|
|
|
in
|
|
|
|
''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
|
|
|
|
sed \
|
|
|
|
'1s,.*,&\nPATH=${path},' \
|
|
|
|
< ./get \
|
|
|
|
> $out/bin/get
|
|
|
|
|
|
|
|
chmod +x $out/bin/get
|
|
|
|
'';
|
|
|
|
}
|