2021-06-01 23:34:43 +00:00
|
|
|
{ lib, makeWrapper, stdenv
|
|
|
|
, bash, coreutils, gawk, nix, openssh
|
|
|
|
}:
|
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
|
2021-06-01 23:34:43 +00:00
|
|
|
export PATH=${lib.makeBinPath [ coreutils gawk nix openssh ]}
|
2017-05-16 21:30:09 +00:00
|
|
|
EOF
|
|
|
|
chmod +x $out/bin/whatsupnix
|
|
|
|
'';
|
|
|
|
}
|