about summary refs log tree commit diff
path: root/pkgs/applications/audio/minidsp/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/audio/minidsp/default.nix')
-rw-r--r--pkgs/applications/audio/minidsp/default.nix15
1 files changed, 7 insertions, 8 deletions
diff --git a/pkgs/applications/audio/minidsp/default.nix b/pkgs/applications/audio/minidsp/default.nix
index 1ba98f003481..f6affaeefc3a 100644
--- a/pkgs/applications/audio/minidsp/default.nix
+++ b/pkgs/applications/audio/minidsp/default.nix
@@ -10,25 +10,24 @@
 }:
 rustPlatform.buildRustPackage rec {
   pname = "minidsp";
-  version = "0.1.9";
+  version = "0.1.12";
 
   src = fetchFromGitHub {
     owner = "mrene";
     repo = "minidsp-rs";
-    # v0.1.9 tag is out of date, cargo lock fixed in next commit on main
-    rev = "b03a95a05917f20b9c3153c03e4e99dd943d9f6f";
-    hash = "sha256-uZBrX3VCCpr7AY82PgR596mncL5wWDK7bpx2m/jCJBE=";
+    rev = "v${version}";
+    hash = "sha256-8bKP9/byVRKj1P1MP3ZVg8yw0WaNB0BcqarCti7B8CA=";
   };
 
-  cargoHash = "sha256-0PyojyimxnwEtHA98Npf4eHvycjuXdPrrIFilVuEnQk=";
+  cargoHash = "sha256-GUrYEFpTo83lKuDyENaVN3VhnZ2Y/igtsbEY7kNa1os=";
 
   cargoBuildFlags = ["-p minidsp -p minidsp-daemon"];
 
   buildInputs =
-    lib.optionals stdenv.isLinux [libusb1]
-    ++ lib.optionals stdenv.isDarwin [AppKit IOKit];
+    lib.optionals stdenv.hostPlatform.isLinux [libusb1]
+    ++ lib.optionals stdenv.hostPlatform.isDarwin [AppKit IOKit];
 
-  nativeBuildInputs = lib.optionals stdenv.isLinux [pkg-config];
+  nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [pkg-config];
 
   meta = with lib; {
     description = "Control interface for some MiniDSP products";