diff options
author | zseri <zseri.devel@ytrizja.de> | 2021-02-27 00:04:37 +0100 |
---|---|---|
committer | zseri <zseri.devel@ytrizja.de> | 2021-02-27 00:04:37 +0100 |
commit | 113e2761b7873e110bb54b11310adfeb2cf1cb49 (patch) | |
tree | a9f676ed3cefc28edb010943c1ec95592a80a28e /pkgs/tools | |
parent | d39fa1f503caecdf1997f5bafd3e027dcc4b3dae (diff) | |
download | nixpkgs-113e2761b7873e110bb54b11310adfeb2cf1cb49.tar nixpkgs-113e2761b7873e110bb54b11310adfeb2cf1cb49.tar.gz nixpkgs-113e2761b7873e110bb54b11310adfeb2cf1cb49.tar.bz2 nixpkgs-113e2761b7873e110bb54b11310adfeb2cf1cb49.tar.lz nixpkgs-113e2761b7873e110bb54b11310adfeb2cf1cb49.tar.xz nixpkgs-113e2761b7873e110bb54b11310adfeb2cf1cb49.tar.zst nixpkgs-113e2761b7873e110bb54b11310adfeb2cf1cb49.zip |
zs-apc-spdu-ctl: init at 0.0.2
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/networking/zs-apc-spdu-ctl/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/tools/networking/zs-apc-spdu-ctl/default.nix b/pkgs/tools/networking/zs-apc-spdu-ctl/default.nix new file mode 100644 index 00000000000..275cc88e597 --- /dev/null +++ b/pkgs/tools/networking/zs-apc-spdu-ctl/default.nix @@ -0,0 +1,36 @@ +{ cmake +, fetchFromGitHub +, fping +, lib +, libowlevelzs +, net-snmp +, stdenv +}: + +# TODO: add a services entry for the /etc/zs-apc-spdu.conf file +stdenv.mkDerivation rec { + pname = "zs-apc-spdu-ctl"; + version = "0.0.2"; + + src = fetchFromGitHub { + owner = "zseri"; + repo = "zs-apc-spdu-ctl"; + rev = "v${version}"; + sha256 = "TMV9ETWBVeXq6tZ2e0CrvHBXoyKfOLCQurjBdf/iw/M="; + }; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ fping libowlevelzs net-snmp ]; + + postPatch = '' + substituteInPlace src/confent.cxx \ + --replace /usr/sbin/fping "${lib.makeBinPath [fping]}/fping" + ''; + + meta = with lib; { + description = "APC SPDU control utility"; + license = licenses.mit; + maintainers = with maintainers; [ zseri ]; + platforms = platforms.linux; + }; +} |