summary refs log tree commit diff
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2022-02-25 22:51:08 +0800
committerBobby Rong <rjl931189261@126.com>2022-03-02 11:28:28 +0800
commit7c504659c869e1ca38ce219390423fd818b4efb2 (patch)
tree53f4fe4f1a8406fcfe3ae80202c445d9eae2b1d3
parentf04b3a951f3ed55ed4c3a0cd08da2e6ac9d88cb5 (diff)
downloadnixpkgs-7c504659c869e1ca38ce219390423fd818b4efb2.tar
nixpkgs-7c504659c869e1ca38ce219390423fd818b4efb2.tar.gz
nixpkgs-7c504659c869e1ca38ce219390423fd818b4efb2.tar.bz2
nixpkgs-7c504659c869e1ca38ce219390423fd818b4efb2.tar.lz
nixpkgs-7c504659c869e1ca38ce219390423fd818b4efb2.tar.xz
nixpkgs-7c504659c869e1ca38ce219390423fd818b4efb2.tar.zst
nixpkgs-7c504659c869e1ca38ce219390423fd818b4efb2.zip
libxmlb: enable darwin build
-rw-r--r--pkgs/development/libraries/libxmlb/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libxmlb/default.nix b/pkgs/development/libraries/libxmlb/default.nix
index 85fda8ddc8e..80d6129f18a 100644
--- a/pkgs/development/libraries/libxmlb/default.nix
+++ b/pkgs/development/libraries/libxmlb/default.nix
@@ -1,6 +1,7 @@
 { stdenv
 , lib
 , fetchFromGitHub
+, fetchpatch
 , docbook_xml_dtd_43
 , docbook_xsl
 , glib
@@ -30,6 +31,13 @@ stdenv.mkDerivation rec {
 
   patches = [
     ./installed-tests-path.patch
+    # Fix darwin build, can be removed on next release
+    # `--version-script` isn't supported by the macOS linker
+    # https://github.com/hughsie/libxmlb/pull/119
+    (fetchpatch {
+      url = "https://github.com/hughsie/libxmlb/commit/d83aac5bd78cfbbfa2ecd428ff54b811071dfe4d.patch";
+      sha256 = "sha256-UNRMbyNzdxfTZ8xV6J8a622hPnr3mowooP1q8Dg19yw=";
+    })
   ];
 
   nativeBuildInputs = [
@@ -72,6 +80,6 @@ stdenv.mkDerivation rec {
     homepage = "https://github.com/hughsie/libxmlb";
     license = licenses.lgpl21Plus;
     maintainers = with maintainers; [ jtojnar ];
-    platforms = platforms.linux;
+    platforms = platforms.unix;
   };
 }