redshift: clean up a little
- Remove bogus second 'python' argument from substituteInPlace - Format optional dependencies after their *Support argument
This commit is contained in:
parent
19f2be4523
commit
ff2bb85e2c
@ -1,10 +1,9 @@
|
|||||||
{ fetchurl, stdenv, gettext, intltool, pkgconfig, makeWrapper
|
{ fetchurl, stdenv, gettext, intltool, makeWrapper, pkgconfig
|
||||||
, geoclue, python, pygobject3, gtk3, pyxdg
|
, geoclue
|
||||||
, libdrm, libX11, libxcb, libXxf86vm
|
, guiSupport ? true, gtk3, python, pygobject3, pyxdg
|
||||||
, guiSupport ? true
|
, drmSupport ? true, libdrm
|
||||||
, drmSupport ? true
|
, randrSupport ? true, libxcb
|
||||||
, randrSupport ? true
|
, vidModeSupport ? true, libX11, libXxf86vm
|
||||||
, vidModeSupport ? true
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -33,7 +32,7 @@ stdenv.mkDerivation {
|
|||||||
];
|
];
|
||||||
|
|
||||||
preInstall = stdenv.lib.optionalString guiSupport ''
|
preInstall = stdenv.lib.optionalString guiSupport ''
|
||||||
substituteInPlace src/redshift-gtk/redshift-gtk python \
|
substituteInPlace src/redshift-gtk/redshift-gtk \
|
||||||
--replace "/usr/bin/env python3" "${python}/bin/${python.executable}"
|
--replace "/usr/bin/env python3" "${python}/bin/${python.executable}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user