summary refs log tree commit diff
diff options
context:
space:
mode:
authorThiago Kenji Okada <thiagokokada@gmail.com>2021-10-04 13:19:08 -0300
committerThiago Kenji Okada <thiagokokada@gmail.com>2021-10-04 13:22:51 -0300
commit18fd76f7c77742268ce1840c237a901df3a75c0e (patch)
treeb5e3b92aef3da49d25867c5d5f8294140b7e1909
parent86a3d865f4b05fb8c913980b6d470802e70fe577 (diff)
downloadnixpkgs-18fd76f7c77742268ce1840c237a901df3a75c0e.tar
nixpkgs-18fd76f7c77742268ce1840c237a901df3a75c0e.tar.gz
nixpkgs-18fd76f7c77742268ce1840c237a901df3a75c0e.tar.bz2
nixpkgs-18fd76f7c77742268ce1840c237a901df3a75c0e.tar.lz
nixpkgs-18fd76f7c77742268ce1840c237a901df3a75c0e.tar.xz
nixpkgs-18fd76f7c77742268ce1840c237a901df3a75c0e.tar.zst
nixpkgs-18fd76f7c77742268ce1840c237a901df3a75c0e.zip
pamixer: install using Makefile
-rw-r--r--pkgs/applications/audio/pamixer/default.nix16
1 files changed, 2 insertions, 14 deletions
diff --git a/pkgs/applications/audio/pamixer/default.nix b/pkgs/applications/audio/pamixer/default.nix
index 4ea432885f6..5febf5f3dfc 100644
--- a/pkgs/applications/audio/pamixer/default.nix
+++ b/pkgs/applications/audio/pamixer/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchFromGitHub, fetchpatch, boost, libpulseaudio, installShellFiles }:
+{ lib, stdenv, fetchFromGitHub, boost, libpulseaudio }:
 
 stdenv.mkDerivation rec {
   pname = "pamixer";
@@ -13,19 +13,7 @@ stdenv.mkDerivation rec {
 
   buildInputs = [ boost libpulseaudio ];
 
-  nativeBuildInputs = [ installShellFiles ];
-
-  installPhase = ''
-    runHook preInstall
-
-    install -Dm755 pamixer -t $out/bin
-
-    runHook postInstall
-  '';
-
-  postInstall = ''
-    installManPage pamixer.1
-  '';
+  makeFlags = [ "PREFIX=$(out)" ];
 
   meta = with lib; {
     description = "Pulseaudio command line mixer";