From eb8105ad019670be5ae05f3872d3ce1bbdf9c722 Mon Sep 17 00:00:00 2001 From: Fedor Pakhomov Date: Sat, 7 Mar 2015 01:10:46 +0300 Subject: [PATCH] Separated DDCcontrol-DB declaration from DDCcontrol declaration --- pkgs/data/misc/ddccontrol-db/default.nix | 37 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 pkgs/data/misc/ddccontrol-db/default.nix diff --git a/pkgs/data/misc/ddccontrol-db/default.nix b/pkgs/data/misc/ddccontrol-db/default.nix new file mode 100644 index 000000000000..199ed5b7eb00 --- /dev/null +++ b/pkgs/data/misc/ddccontrol-db/default.nix @@ -0,0 +1,37 @@ +{ stdenv +, fetchurl +, perl +, perlPackages +, libxml2 +, pciutils +, pkgconfig +, gtk +}: + +let version = "20061014"; in +let verName = "${version}"; in +stdenv.mkDerivation { + name = "ddccontrol-db-${verName}"; + src = fetchurl { + url = "mirror://sourceforge/ddccontrol/ddccontrol-db/${verName}/ddccontrol-db-${verName}.tar.bz2"; + sha1 = "9d06570fdbb4d25e397202a518265cc1173a5de3"; + }; + buildInputs = + [ + stdenv + perl + perlPackages.libxml_perl + libxml2 + pciutils + pkgconfig + gtk + ]; + + meta = with stdenv.lib; { + description = "Monitor database for DDCcontrol"; + homepage = "http://http://ddccontrol.sourceforge.net/"; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = [ stdenv.lib.maintainers.pakhfn ]; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ba83f98ca0b1..cfbef1ac0067 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1009,7 +1009,7 @@ let ddccontrol = callPackage ../tools/misc/ddccontrol { }; - ddccontrol-db = callPackage ../tools/misc/ddccontrol/ddccontrol-db.nix { }; + ddccontrol-db = callPackage ../data/misc/ddccontrol-db { }; ddclient = callPackage ../tools/networking/ddclient { };