Stylistical changes for ddccontrol
This commit is contained in:
parent
0738edc1fd
commit
4e926e50da
|
@ -1,17 +1,35 @@
|
||||||
{ stdenv, fetchurl, perl, perlPackages, libxml2, pciutils, pkgconfig, gtk }:
|
{ stdenv
|
||||||
|
, fetchurl
|
||||||
|
, perl
|
||||||
|
, perlPackages
|
||||||
|
, libxml2
|
||||||
|
, pciutils
|
||||||
|
, pkgconfig
|
||||||
|
, gtk
|
||||||
|
}:
|
||||||
|
|
||||||
let version = "20061014"; in
|
let version = "20061014"; in
|
||||||
let verName = "${version}"; in
|
let verName = "${version}"; in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "ddccontrol-db-${verName}";
|
name = "ddccontrol-db-${verName}";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/ddccontrol/ddccontrol-db/${verName}/ddccontrol-db-${verName}.tar.bz2";
|
url = "mirror://sourceforge/ddccontrol/ddccontrol-db/${verName}/ddccontrol-db-${verName}.tar.bz2";
|
||||||
sha1 = "9d06570fdbb4d25e397202a518265cc1173a5de3";
|
sha1 = "9d06570fdbb4d25e397202a518265cc1173a5de3";
|
||||||
};
|
};
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ stdenv perl perlPackages.libxml_perl libxml2 pciutils pkgconfig gtk ];
|
[
|
||||||
meta= with stdenv.lib; {
|
stdenv
|
||||||
description = "Monitor database for DDCcontrol";
|
perl
|
||||||
license = licenses.gpl2;
|
perlPackages.libxml_perl
|
||||||
platforms = platforms.linux;
|
libxml2
|
||||||
};
|
pciutils
|
||||||
|
pkgconfig
|
||||||
|
gtk
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Monitor database for DDCcontrol";
|
||||||
|
license = licenses.gpl2;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
}
|
}
|
|
@ -1,31 +1,57 @@
|
||||||
{ stdenv, fetchurl, intltool, libtool, autoconf, automake110x, perl, perlPackages, libxml2, pciutils, pkgconfig, gtk, ddccontrol-db }:
|
{ stdenv
|
||||||
|
, fetchurl
|
||||||
|
, intltool
|
||||||
|
, libtool
|
||||||
|
, autoconf
|
||||||
|
, automake110x
|
||||||
|
, perl
|
||||||
|
, perlPackages
|
||||||
|
, libxml2
|
||||||
|
, pciutils
|
||||||
|
, pkgconfig
|
||||||
|
, gtk
|
||||||
|
, ddccontrol-db
|
||||||
|
}:
|
||||||
|
|
||||||
let version = "0.4.2"; in
|
let version = "0.4.2"; in
|
||||||
let verName = "${version}"; in
|
let verName = "${version}"; in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "ddccontrol-${verName}";
|
name = "ddccontrol-${verName}";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/ddccontrol/ddccontrol-${version}.tar.bz2";
|
url = "mirror://sourceforge/ddccontrol/ddccontrol-${version}.tar.bz2";
|
||||||
sha1 = "fd5c53286315a61a18697a950e63ed0c8d5acff1";
|
sha1 = "fd5c53286315a61a18697a950e63ed0c8d5acff1";
|
||||||
};
|
};
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ stdenv intltool libtool autoconf automake110x perl perlPackages.libxml_perl libxml2 pciutils pkgconfig gtk ddccontrol-db];
|
[ stdenv
|
||||||
|
intltool
|
||||||
|
libtool
|
||||||
|
autoconf
|
||||||
|
automake110x
|
||||||
|
perl
|
||||||
|
perlPackages.libxml_perl
|
||||||
|
libxml2
|
||||||
|
pciutils
|
||||||
|
pkgconfig
|
||||||
|
gtk
|
||||||
|
ddccontrol-db
|
||||||
|
];
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
npath=$(echo "${ddccontrol-db}/share/ddccontrol-db" | sed "s/\\//\\\\\\//g")
|
newPath=$(echo "${ddccontrol-db}/share/ddccontrol-db" | sed "s/\\//\\\\\\//g")
|
||||||
mv configure.ac configure.ac.old
|
mv configure.ac configure.ac.old
|
||||||
opath="\$"
|
oldPath="\$"
|
||||||
opath+="{datadir}\/ddccontrol-db"
|
oldPath+="{datadir}\/ddccontrol-db"
|
||||||
sed "s/$opath/$npath/" <configure.ac.old >configure.ac
|
sed "s/$oldPath/$newPath/" <configure.ac.old >configure.ac
|
||||||
rm configure.ac.old
|
rm configure.ac.old
|
||||||
'';
|
'';
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
autoreconf --install
|
autoreconf --install
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A program used to control monitor parameters by software";
|
description = "A program used to control monitor parameters by software";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue