From 9cfb2c0697d6343c8f45dcd6175509d4b0210a39 Mon Sep 17 00:00:00 2001 From: Richard Marko Date: Thu, 25 Apr 2019 14:00:53 +0200 Subject: [PATCH] ledmon: init at 0.92 --- pkgs/tools/system/ledmon/default.nix | 32 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/tools/system/ledmon/default.nix diff --git a/pkgs/tools/system/ledmon/default.nix b/pkgs/tools/system/ledmon/default.nix new file mode 100644 index 000000000000..df1a5ebcfabf --- /dev/null +++ b/pkgs/tools/system/ledmon/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchFromGitHub, udev, sg3_utils }: + +stdenv.mkDerivation rec { + pname = "ledmon"; + version = "0.92"; + + src = fetchFromGitHub { + owner = "intel"; + repo = "ledmon"; + rev = "v${version}"; + sha256 = "1lz59606vf2sws5xwijxyffm8kxcf8p9qbdpczsq1b5mm3dk6lvp"; + }; + + buildInputs = [ udev sg3_utils ]; + + installTargets = [ "install" "install-systemd" ]; + + makeFlags = [ + "MAN_INSTDIR=${placeholder "out"}/share/man" + "SYSTEMD_SERVICE_INSTDIR=${placeholder "out"}/lib/systemd/system" + "LEDCTL_INSTDIR=${placeholder "out"}/sbin" + "LEDMON_INSTDIR=${placeholder "out"}/sbin" + ]; + + meta = with stdenv.lib; { + homepage = https://github.com/intel/ledmon; + description = "Enclosure LED Utilities"; + platforms = platforms.linux; + license = with licenses; [ gpl2 ]; + maintainers = with stdenv.lib.maintainers; [ sorki ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c39fafb320e7..f17499e6a7aa 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4120,6 +4120,8 @@ in leatherman = callPackage ../development/libraries/leatherman { }; + ledmon = callPackage ../tools/system/ledmon { }; + leela = callPackage ../tools/graphics/leela { }; lftp = callPackage ../tools/networking/lftp { };