stockholm/krebs/5pkgs/simple/whatsupnix/default.nix
tv 5c613bd73a whatsupnix: stdenv.lib -> lib
Deprecated since nixpkgs 21.05
2021-06-02 02:43:38 +02:00

18 lines
425 B
Nix

{ lib, makeWrapper, stdenv
, bash, coreutils, gawk, nix, openssh
}:
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=${lib.makeBinPath [ coreutils gawk nix openssh ]}
EOF
chmod +x $out/bin/whatsupnix
'';
}