diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2018-11-27 21:32:14 -0600 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2018-11-28 20:14:39 -0600 |
commit | 39122285ba4441be27fc7b0bbbbbf647189df557 (patch) | |
tree | 3ef974ded6483ead52e0fee6d218d5dc02f26bd7 /pkgs/tools | |
parent | be10bee0e48c4f3f365b947ee539d607d7b30dc7 (diff) |
xbrightness: use imake setup hook
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/X11/xbrightness/default.nix | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/pkgs/tools/X11/xbrightness/default.nix b/pkgs/tools/X11/xbrightness/default.nix index f4112765e6757..2857ea6c7be41 100644 --- a/pkgs/tools/X11/xbrightness/default.nix +++ b/pkgs/tools/X11/xbrightness/default.nix @@ -1,4 +1,5 @@ -{ stdenv, fetchurl, xorg }: +{ stdenv, fetchurl, imake, gccmakedep +, libX11, libXaw, libXext, libXmu, libXpm, libXxf86vm }: stdenv.mkDerivation { @@ -8,22 +9,11 @@ stdenv.mkDerivation { sha256 = "2564dbd393544657cdabe4cbf535d9cfb9abe8edddb1b8cdb1ed4d12f358626e"; }; - buildInputs = [ - xorg.imake - xorg.libX11 - xorg.libXaw - xorg.libXext - xorg.libXmu - xorg.libXpm - xorg.libXxf86vm - ]; + nativeBuildInputs = [ imake gccmakedep ]; + buildInputs = [ libX11 libXaw libXext libXmu libXpm libXxf86vm ]; - configurePhase = "xmkmf"; - - installPhase = '' - make install BINDIR=$out/bin - make install.man MANPATH=$out/share/man - ''; + makeFlags = [ "BINDIR=$(out)/bin" "MANPATH=$(out)/share/man" ]; + installTargets = "install install.man"; meta = { description = "X11 brigthness and gamma software control"; |