pkgs/applications: stdenv.lib -> lib
This commit is contained in:
@@ -19,7 +19,7 @@ let
|
||||
stdenv.mkDerivation rec {
|
||||
inherit pname version src meta;
|
||||
|
||||
patches = stdenv.lib.optionals (pname != "gammastep") [
|
||||
patches = lib.optionals (pname != "gammastep") [
|
||||
# https://github.com/jonls/redshift/pull/575
|
||||
./575.patch
|
||||
];
|
||||
@@ -41,7 +41,7 @@ let
|
||||
"--enable-drm=${if withDrm then "yes" else "no"}"
|
||||
"--enable-quartz=${if withQuartz then "yes" else "no"}"
|
||||
"--enable-corelocation=${if withCoreLocation then "yes" else "no"}"
|
||||
] ++ stdenv.lib.optionals (pname == "gammastep") [
|
||||
] ++ lib.optionals (pname == "gammastep") [
|
||||
"--with-systemduserunitdir=${placeholder "out"}/share/systemd/user/"
|
||||
"--enable-apparmor"
|
||||
];
|
||||
@@ -50,12 +50,12 @@ let
|
||||
gobject-introspection
|
||||
gtk3
|
||||
python
|
||||
] ++ stdenv.lib.optional withRandr libxcb
|
||||
++ stdenv.lib.optional withGeoclue geoclue
|
||||
++ stdenv.lib.optional withDrm libdrm
|
||||
++ stdenv.lib.optional withQuartz ApplicationServices
|
||||
++ stdenv.lib.optionals withCoreLocation [ CoreLocation Foundation Cocoa ]
|
||||
++ stdenv.lib.optional withAppIndicator (if (pname != "gammastep")
|
||||
] ++ lib.optional withRandr libxcb
|
||||
++ lib.optional withGeoclue geoclue
|
||||
++ lib.optional withDrm libdrm
|
||||
++ lib.optional withQuartz ApplicationServices
|
||||
++ lib.optionals withCoreLocation [ CoreLocation Foundation Cocoa ]
|
||||
++ lib.optional withAppIndicator (if (pname != "gammastep")
|
||||
then libappindicator
|
||||
else libayatana-appindicator)
|
||||
;
|
||||
@@ -144,9 +144,9 @@ rec {
|
||||
meta = redshift.meta // {
|
||||
name = "${pname}-${version}";
|
||||
longDescription = "Gammastep"
|
||||
+ stdenv.lib.removePrefix "Redshift" redshift.meta.longDescription;
|
||||
+ lib.removePrefix "Redshift" redshift.meta.longDescription;
|
||||
homepage = "https://gitlab.com/chinstrap/gammastep";
|
||||
maintainers = [ stdenv.lib.maintainers.primeos ] ++ redshift.meta.maintainers;
|
||||
maintainers = [ lib.maintainers.primeos ] ++ redshift.meta.maintainers;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user