nix-bitcoin/pkgs/nodeinfo.nix

15 lines
271 B
Nix
Raw Normal View History

2018-11-20 14:14:40 -08:00
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
'';
}