mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 09:17:07 +03:00
mate.engrampa: support cross compilation
This commit is contained in:
parent
ead1dc9913
commit
408a6b0c1d
@ -6,11 +6,12 @@
|
|||||||
, itstool
|
, itstool
|
||||||
, libxml2
|
, libxml2
|
||||||
, gtk3
|
, gtk3
|
||||||
, file
|
|
||||||
, mate
|
, mate
|
||||||
, hicolor-icon-theme
|
, hicolor-icon-theme
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
, mateUpdateScript
|
, mateUpdateScript
|
||||||
|
# can be defaulted to true once engrampa builds with meson (version > 1.27.0)
|
||||||
|
, withMagic ? stdenv.buildPlatform.canExecute stdenv.hostPlatform, file
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -26,20 +27,22 @@ stdenv.mkDerivation rec {
|
|||||||
pkg-config
|
pkg-config
|
||||||
gettext
|
gettext
|
||||||
itstool
|
itstool
|
||||||
|
libxml2 # for xmllint
|
||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libxml2
|
|
||||||
gtk3
|
gtk3
|
||||||
file #libmagic
|
|
||||||
mate.caja
|
mate.caja
|
||||||
hicolor-icon-theme
|
hicolor-icon-theme
|
||||||
mate.mate-desktop
|
mate.mate-desktop
|
||||||
|
] ++ lib.optionals withMagic [
|
||||||
|
file
|
||||||
];
|
];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-cajadir=$$out/lib/caja/extensions-2.0"
|
"--with-cajadir=$$out/lib/caja/extensions-2.0"
|
||||||
|
] ++ lib.optionals withMagic [
|
||||||
"--enable-magic"
|
"--enable-magic"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user