summary refs log tree commit diff
diff options
context:
space:
mode:
authorColin <colin@uninsane.org>2023-08-07 02:32:13 +0000
committerArtturin <Artturin@artturin.com>2023-08-13 06:18:24 +0300
commit408a6b0c1d5c309511795a2950533bd7da0448e8 (patch)
treef6fb8c0121e5d698262513b364e39c4a91660824
parentead1dc991374af0bc68a9cc05bd0df8d7dca40d3 (diff)
downloadnixpkgs-408a6b0c1d5c309511795a2950533bd7da0448e8.tar
nixpkgs-408a6b0c1d5c309511795a2950533bd7da0448e8.tar.gz
nixpkgs-408a6b0c1d5c309511795a2950533bd7da0448e8.tar.bz2
nixpkgs-408a6b0c1d5c309511795a2950533bd7da0448e8.tar.lz
nixpkgs-408a6b0c1d5c309511795a2950533bd7da0448e8.tar.xz
nixpkgs-408a6b0c1d5c309511795a2950533bd7da0448e8.tar.zst
nixpkgs-408a6b0c1d5c309511795a2950533bd7da0448e8.zip
mate.engrampa: support cross compilation
-rw-r--r--pkgs/desktops/mate/engrampa/default.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/desktops/mate/engrampa/default.nix b/pkgs/desktops/mate/engrampa/default.nix
index b781251a7ca..bdac030ed34 100644
--- a/pkgs/desktops/mate/engrampa/default.nix
+++ b/pkgs/desktops/mate/engrampa/default.nix
@@ -6,11 +6,12 @@
 , itstool
 , libxml2
 , gtk3
-, file
 , mate
 , hicolor-icon-theme
 , wrapGAppsHook
 , 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 {
@@ -26,20 +27,22 @@ stdenv.mkDerivation rec {
     pkg-config
     gettext
     itstool
+    libxml2  # for xmllint
     wrapGAppsHook
   ];
 
   buildInputs = [
-    libxml2
     gtk3
-    file #libmagic
     mate.caja
     hicolor-icon-theme
     mate.mate-desktop
+  ] ++ lib.optionals withMagic [
+    file
   ];
 
   configureFlags = [
     "--with-cajadir=$$out/lib/caja/extensions-2.0"
+  ] ++ lib.optionals withMagic [
     "--enable-magic"
   ];