2019-01-02 03:24:55 -08:00
|
|
|
{pkgs}:
|
2018-11-20 14:14:40 -08:00
|
|
|
|
2019-01-02 03:24:55 -08:00
|
|
|
with pkgs;
|
2018-11-20 14:14:40 -08:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "nodeinfo";
|
|
|
|
src = ./nodeinfo.sh;
|
|
|
|
|
|
|
|
unpackPhase = "true";
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
mkdir -p $out/bin
|
|
|
|
chmod +wx $src
|
|
|
|
cp $src $out/bin/nodeinfo
|
|
|
|
'';
|
|
|
|
}
|