nix-bitcoin/pkgs/nodeinfo.nix
2018-11-20 22:14:40 +00:00

15 lines
271 B
Nix

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
'';
}