mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{ stdenv, fetchurl, autoreconfHook, intltool, perl, perlPackages, libxml2
|
|
, pciutils, pkgconfig, gtk2, ddccontrol-db
|
|
}:
|
|
|
|
let version = "0.4.2"; in
|
|
stdenv.mkDerivation {
|
|
name = "ddccontrol-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/ddccontrol/ddccontrol-${version}.tar.bz2";
|
|
sha1 = "fd5c53286315a61a18697a950e63ed0c8d5acff1";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook intltool pkgconfig ];
|
|
|
|
buildInputs = [
|
|
perl perlPackages.libxml_perl libxml2 pciutils gtk2 ddccontrol-db
|
|
];
|
|
|
|
patches = [ ./automake.patch ];
|
|
|
|
hardeningDisable = [ "format" "bindnow" ];
|
|
|
|
prePatch = ''
|
|
newPath=$(echo "${ddccontrol-db}/share/ddccontrol-db" | sed "s/\\//\\\\\\//g")
|
|
mv configure.ac configure.ac.old
|
|
oldPath="\$"
|
|
oldPath+="{datadir}\/ddccontrol-db"
|
|
sed "s/$oldPath/$newPath/" <configure.ac.old >configure.ac
|
|
rm configure.ac.old
|
|
|
|
sed -e "s/chmod 4711/chmod 0711/" -i src/ddcpci/Makefile*
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A program used to control monitor parameters by software";
|
|
homepage = http://ddccontrol.sourceforge.net/;
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = [ stdenv.lib.maintainers.pakhfn ];
|
|
};
|
|
}
|
|
|