about summary refs log tree commit diff
path: root/pkgs/by-name/di
diff options
context:
space:
mode:
authorLeah Amelia Chen <hi@pluie.me>2024-05-08 13:46:12 +0200
committerLeah Amelia Chen <hi@pluie.me>2024-05-08 13:56:41 +0200
commita66b1dc4a4c8a6ec9053e992841e2863541a4c67 (patch)
treeb24b2c064b225111c910c4676666ea8936c0e832 /pkgs/by-name/di
parente28f969d66e87a5fe9511bb495491f0dffa10f4e (diff)
dim: fix build failure
Who would've thought it's caused by unused imports of all things...?
Diffstat (limited to 'pkgs/by-name/di')
-rw-r--r--pkgs/by-name/di/dim/package.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/by-name/di/dim/package.nix b/pkgs/by-name/di/dim/package.nix
index 9b59329e766ac..bf8140b471a75 100644
--- a/pkgs/by-name/di/dim/package.nix
+++ b/pkgs/by-name/di/dim/package.nix
@@ -11,6 +11,7 @@
   sqlite,
   libvaSupport ? stdenv.hostPlatform.isLinux,
   libva,
+  fetchpatch,
 }:
 rustPlatform.buildRustPackage rec {
   pname = "dim";
@@ -45,6 +46,14 @@ rustPlatform.buildRustPackage rec {
     # (ffmpeg) binaries in the same directory as the binary. Patch it to use
     # the working dir and PATH instead.
     ./relative-paths.diff
+
+    # Upstream has some unused imports that prevent things from compiling...
+    # Remove for next release.
+    (fetchpatch {
+      name = "remove-unused-imports.patch";
+      url = "https://github.com/Dusk-Labs/dim/commit/f62de1d38e6e52f27b1176f0dabbbc51622274cb.patch";
+      hash = "sha256-Gk+RHWtCKN7McfFB3siIOOhwi3+k17MCQr4Ya4RCKjc=";
+    })
   ];
 
   postConfigure = ''