add nodeinfo package

This commit is contained in:
Jonas Nick
2018-11-20 22:14:40 +00:00
parent 14a073c35a
commit 986217d5d3
4 changed files with 47 additions and 6 deletions
+14
View File
@@ -0,0 +1,14 @@
with import <nixpkgs> {}; # bring all of Nixpkgs into scope
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
'';
}