mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
31 lines
748 B
Nix
31 lines
748 B
Nix
{ stdenv, fetchFromGitHub
|
|
, pkgconfig, cmake
|
|
, libpulseaudio, ncurses }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pamix";
|
|
version = "1.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "patroclos";
|
|
repo = "pamix";
|
|
rev = version;
|
|
sha256 = "1d44ggnwkf2gff62959pj45v3a2k091q8v154wc5pmzamam458wp";
|
|
};
|
|
|
|
preConfigure = ''
|
|
substituteInPlace CMakeLists.txt --replace "/etc" "$out/etc/xdg"
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
buildInputs = [ libpulseaudio ncurses ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Pulseaudio terminal mixer";
|
|
homepage = https://github.com/patroclos/PAmix;
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ ericsagnes ];
|
|
};
|
|
}
|