Skip to content

Commit 96aa751

Browse files
committed
etlegacy-unwrapped: fix Darwin build
1 parent 8c819ae commit 96aa751

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

pkgs/by-name/et/etlegacy-unwrapped/package.nix

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
, stdenv
33
, writeShellApplication
44
, fetchFromGitHub
5+
, fetchpatch
56
, cjson
67
, cmake
78
, git
@@ -44,6 +45,16 @@ stdenv.mkDerivation {
4445
hash = "sha256-k1H3irA9UVOICY3keKGVJMtBczW/b5ObyNvB7fGAcFA=";
4546
};
4647

48+
patches = lib.optionals stdenv.hostPlatform.isDarwin [
49+
# Fix compilation on Darwin archs
50+
# Reported upstream at https://github.com/etlegacy/etlegacy/pull/3005
51+
# Remove this patch when the PR is merged
52+
(fetchpatch {
53+
url = "https://github.com/etlegacy/etlegacy/commit/2767d15c67fe0680178d9cc85ed4cf2ad1d88ad0.patch?full_index=1";
54+
hash = "sha256-rGfNIWb9zohk1QJLrYg9nqw6sMvXM0IbIl9kvYXRBuk=";
55+
})
56+
];
57+
4758
nativeBuildInputs = [
4859
cjson
4960
cmake
@@ -104,6 +115,5 @@ stdenv.mkDerivation {
104115
gameplay is still considered unmatched by many, despite its great age.
105116
'';
106117
maintainers = with lib.maintainers; [ ashleyghooper drupol ];
107-
platforms = lib.platforms.linux;
108118
};
109119
}

0 commit comments

Comments
 (0)