16 lines
426 B
Nix
16 lines
426 B
Nix
{ bash, coreutils, gawk, makeWrapper, nix, openssh, stdenv }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "whatsupnix";
|
|
phases = [ "installPhase" ];
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cat - ${./whatsupnix.bash} > $out/bin/whatsupnix <<\EOF
|
|
#! ${bash}/bin/bash
|
|
export PATH=${stdenv.lib.makeBinPath [ coreutils gawk nix openssh ]}
|
|
EOF
|
|
chmod +x $out/bin/whatsupnix
|
|
'';
|
|
}
|