mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
added ddccontrol package
This commit is contained in:
parent
db75b5d052
commit
0738edc1fd
46
pkgs/development/tools/misc/automake/automake-1.10.x.nix
Normal file
46
pkgs/development/tools/misc/automake/automake-1.10.x.nix
Normal file
@ -0,0 +1,46 @@
|
||||
{ stdenv, fetchurl, perl, autoconf, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "automake-1.10.3";
|
||||
|
||||
# TODO: Remove the `aclocal' wrapper when $ACLOCAL_PATH support is
|
||||
# available upstream; see
|
||||
# <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9026>.
|
||||
builder = ./builder.sh;
|
||||
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnu/automake/${name}.tar.gz";
|
||||
sha256 = "fda9b22ec8705780c8292510b3376bb45977f45a4f7eb3578c5ad126d7758028";
|
||||
};
|
||||
|
||||
buildInputs = [perl autoconf makeWrapper];
|
||||
|
||||
# Disable indented log output from Make, otherwise "make.test" will
|
||||
# fail.
|
||||
preCheck = "unset NIX_INDENT_MAKE";
|
||||
|
||||
# Don't fixup "#! /bin/sh" in Libtool, otherwise it will use the
|
||||
# "fixed" path in generated files!
|
||||
dontPatchShebangs = true;
|
||||
|
||||
# Run the test suite in parallel.
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
branch = "1.10";
|
||||
homepage = http://www.gnu.org/software/automake/;
|
||||
description = "GNU standard-compliant makefile generator";
|
||||
|
||||
longDescription = ''
|
||||
GNU Automake is a tool for automatically generating
|
||||
`Makefile.in' files compliant with the GNU Coding
|
||||
Standards. Automake requires the use of Autoconf.
|
||||
'';
|
||||
|
||||
license = stdenv.lib.licenses.gpl2Plus;
|
||||
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
17
pkgs/tools/misc/ddccontrol/ddccontrol-db.nix
Normal file
17
pkgs/tools/misc/ddccontrol/ddccontrol-db.nix
Normal file
@ -0,0 +1,17 @@
|
||||
{ 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";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
31
pkgs/tools/misc/ddccontrol/default.nix
Normal file
31
pkgs/tools/misc/ddccontrol/default.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{ stdenv, fetchurl, intltool, libtool, autoconf, automake110x, perl, perlPackages, libxml2, pciutils, pkgconfig, gtk, ddccontrol-db }:
|
||||
let version = "0.4.2"; in
|
||||
let verName = "${version}"; in
|
||||
stdenv.mkDerivation {
|
||||
name = "ddccontrol-${verName}";
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/ddccontrol/ddccontrol-${version}.tar.bz2";
|
||||
sha1 = "fd5c53286315a61a18697a950e63ed0c8d5acff1";
|
||||
};
|
||||
buildInputs =
|
||||
[ stdenv intltool libtool autoconf automake110x perl perlPackages.libxml_perl libxml2 pciutils pkgconfig gtk ddccontrol-db];
|
||||
|
||||
prePatch = ''
|
||||
npath=$(echo "${ddccontrol-db}/share/ddccontrol-db" | sed "s/\\//\\\\\\//g")
|
||||
mv configure.ac configure.ac.old
|
||||
opath="\$"
|
||||
opath+="{datadir}\/ddccontrol-db"
|
||||
sed "s/$opath/$npath/" <configure.ac.old >configure.ac
|
||||
rm configure.ac.old
|
||||
'';
|
||||
preConfigure = ''
|
||||
autoreconf --install
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A program used to control monitor parameters by software";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
@ -1007,6 +1007,10 @@ let
|
||||
|
||||
detox = callPackage ../tools/misc/detox { };
|
||||
|
||||
ddccontrol = callPackage ../tools/misc/ddccontrol { };
|
||||
|
||||
ddccontrol-db = callPackage ../tools/misc/ddccontrol/ddccontrol-db.nix { };
|
||||
|
||||
ddclient = callPackage ../tools/networking/ddclient { };
|
||||
|
||||
dd_rescue = callPackage ../tools/system/dd_rescue { };
|
||||
@ -4528,6 +4532,8 @@ let
|
||||
|
||||
automake = automake112x;
|
||||
|
||||
automake110x = callPackage ../development/tools/misc/automake/automake-1.10.x.nix { };
|
||||
|
||||
automake111x = callPackage ../development/tools/misc/automake/automake-1.11.x.nix { };
|
||||
|
||||
automake112x = callPackage ../development/tools/misc/automake/automake-1.12.x.nix { };
|
||||
|
Loading…
Reference in New Issue
Block a user