2017-06-15 17:55:28 +00:00
|
|
|
{ bash, coreutils, gawk, makeWrapper, nix, openssh, stdenv }:
|
2017-05-16 21:30:09 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "whatsupnix";
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cat - ${./whatsupnix.bash} > $out/bin/whatsupnix <<\EOF
|
|
|
|
#! ${bash}/bin/bash
|
2017-06-15 17:55:28 +00:00
|
|
|
export PATH=${stdenv.lib.makeBinPath [ coreutils gawk nix openssh ]}
|
2017-05-16 21:30:09 +00:00
|
|
|
EOF
|
|
|
|
chmod +x $out/bin/whatsupnix
|
|
|
|
'';
|
|
|
|
}
|