about summary refs log tree commit diff
path: root/pkgs/by-name/ar/arcan/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/ar/arcan/package.nix')
-rw-r--r--pkgs/by-name/ar/arcan/package.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/by-name/ar/arcan/package.nix b/pkgs/by-name/ar/arcan/package.nix
index d472b9f13228..5259b5560cfb 100644
--- a/pkgs/by-name/ar/arcan/package.nix
+++ b/pkgs/by-name/ar/arcan/package.nix
@@ -2,6 +2,7 @@
   lib,
   SDL2,
   callPackage,
+  fetchpatch2,
   cmake,
   espeak-ng,
   ffmpeg,
@@ -48,7 +49,7 @@
   # Boolean flags
   buildManPages ? true,
   useBuiltinLua ? true,
-  useEspeak ? !stdenv.isDarwin,
+  useEspeak ? !stdenv.hostPlatform.isDarwin,
   useStaticLibuvc ? true,
   useStaticOpenAL ? true,
   useStaticSqlite ? true,
@@ -60,6 +61,14 @@
 stdenv.mkDerivation (finalAttrs: {
   inherit (sources.letoram-arcan) pname version src;
 
+  patches = [
+    # (encode) remove deprecated use of pts/channel-layout
+    (fetchpatch2 {
+      url = "https://github.com/letoram/arcan/commit/e717c1b5833bdc2dea7dc6f64eeaf39c683ebd26.patch?full_index=1";
+      hash = "sha256-nUmOWfphGtGiLehUa78EJWqTlD7SvqJgl8lnn90vTFU=";
+    })
+  ];
+
   nativeBuildInputs = [
     cmake
     makeWrapper