summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2023-11-12 16:53:58 -0300
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-11-12 18:23:44 -0300
commite909d72f7f71ae13c7ad70133541e07d28f7ae22 (patch)
tree5733c3cd10d88fd609fcff7df586172ea12de05a
parent0292524e08404e6d9c79366251074e576cc38af0 (diff)
downloadnixpkgs-e909d72f7f71ae13c7ad70133541e07d28f7ae22.tar
nixpkgs-e909d72f7f71ae13c7ad70133541e07d28f7ae22.tar.gz
nixpkgs-e909d72f7f71ae13c7ad70133541e07d28f7ae22.tar.bz2
nixpkgs-e909d72f7f71ae13c7ad70133541e07d28f7ae22.tar.lz
nixpkgs-e909d72f7f71ae13c7ad70133541e07d28f7ae22.tar.xz
nixpkgs-e909d72f7f71ae13c7ad70133541e07d28f7ae22.tar.zst
nixpkgs-e909d72f7f71ae13c7ad70133541e07d28f7ae22.zip
alsa-tools: add psmisc as dependency for hdajackretask
-rw-r--r--pkgs/os-specific/linux/alsa-project/alsa-tools/default.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/alsa-project/alsa-tools/default.nix b/pkgs/os-specific/linux/alsa-project/alsa-tools/default.nix
index 10f7f2e64d0..b52e1520096 100644
--- a/pkgs/os-specific/linux/alsa-project/alsa-tools/default.nix
+++ b/pkgs/os-specific/linux/alsa-project/alsa-tools/default.nix
@@ -5,7 +5,9 @@
 , fltk13
 , gtk2
 , gtk3
+, makeWrapper
 , pkg-config
+, psmisc
 }:
 
 stdenv.mkDerivation (finalAttrs: {
@@ -18,6 +20,7 @@ stdenv.mkDerivation (finalAttrs: {
   };
 
   nativeBuildInputs = [
+    makeWrapper
     pkg-config
   ];
 
@@ -26,6 +29,7 @@ stdenv.mkDerivation (finalAttrs: {
     fltk13
     gtk2
     gtk3
+    psmisc
   ];
 
   env.TOOLSET = lib.concatStringsSep " " [
@@ -91,6 +95,15 @@ stdenv.mkDerivation (finalAttrs: {
     runHook postInstall
   '';
 
+  fixupPhase = ''
+    runHook preFixup
+
+    wrapProgram $out/bin/hdajackretask \
+      --prefix PATH : ${lib.makeBinPath [ psmisc ]}
+
+    runHook postFixup
+  '';
+
   meta = {
     homepage = "http://www.alsa-project.org/";
     description = "ALSA Tools";