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