nixpkgs/pkgs/applications/audio/pamix/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, fetchpatch
, pkg-config, cmake
2016-09-08 02:34:50 +00:00
, libpulseaudio, ncurses }:
stdenv.mkDerivation rec {
pname = "pamix";
2018-02-24 02:22:13 +00:00
version = "1.6";
2016-09-08 02:34:50 +00:00
src = fetchFromGitHub {
owner = "patroclos";
repo = "pamix";
2016-11-27 02:29:03 +00:00
rev = version;
2018-02-24 02:22:13 +00:00
sha256 = "1d44ggnwkf2gff62959pj45v3a2k091q8v154wc5pmzamam458wp";
2016-09-08 02:34:50 +00:00
};
patches = [
# ncurses-6.3 support, included in next release
(fetchpatch {
name = "ncurses-6.3-p1.patch";
url = "https://github.com/patroclos/PAmix/commit/3400b9c048706c572373e4617b4d5fcdb8dd2505.patch";
sha256 = "0rw56a844pz876ad9p8hfvn2fkd5rh29gpp47h55g08spf0vwb2z";
})
(fetchpatch {
name = "ncurses-6.3-p2.patch";
url = "https://github.com/patroclos/PAmix/commit/5ef67fc5ef6fc0dc0b48ff07ba48093881561d9c.patch";
sha256 = "0f8shpdv2swxdz04bkqgmkvl6c17r5mn4slzr7xd6pvw8hh51p4h";
})
];
2018-02-24 02:22:13 +00:00
preConfigure = ''
substituteInPlace CMakeLists.txt --replace "/etc" "$out/etc/xdg"
'';
nativeBuildInputs = [ cmake pkg-config ];
2016-09-08 02:34:50 +00:00
buildInputs = [ libpulseaudio ncurses ];
meta = with lib; {
2016-09-08 02:34:50 +00:00
description = "Pulseaudio terminal mixer";
homepage = "https://github.com/patroclos/PAmix";
2016-09-08 02:34:50 +00:00
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ ericsagnes ];
};
}