mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-15 17:34:04 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
46 lines
1.3 KiB
Nix
46 lines
1.3 KiB
Nix
{ lib, stdenv, fetchFromGitHub, fetchpatch
|
|
, pkg-config, cmake
|
|
, libpulseaudio, ncurses }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pamix";
|
|
version = "1.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "patroclos";
|
|
repo = "pamix";
|
|
rev = version;
|
|
sha256 = "1d44ggnwkf2gff62959pj45v3a2k091q8v154wc5pmzamam458wp";
|
|
};
|
|
|
|
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";
|
|
})
|
|
];
|
|
|
|
preConfigure = ''
|
|
substituteInPlace CMakeLists.txt --replace "/etc" "$out/etc/xdg"
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
buildInputs = [ libpulseaudio ncurses ];
|
|
|
|
meta = with lib; {
|
|
description = "Pulseaudio terminal mixer";
|
|
homepage = "https://github.com/patroclos/PAmix";
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ ericsagnes ];
|
|
mainProgram = "pamix";
|
|
};
|
|
}
|