Files
nixpkgs/pkgs/by-name/al/alsaequal/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

50 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
alsa-lib,
caps,
ladspaH,
}:
stdenv.mkDerivation rec {
pname = "alsaequal";
version = "0.7.1";
src = fetchFromGitHub {
owner = "bassdr";
repo = "alsaequal";
tag = "v${version}";
hash = "sha256-jI+w/jCFslQSNeIS7mwb+LZSawU4XjbSNNgpvuShH1g=";
};
buildInputs = [
alsa-lib
ladspaH
];
makeFlags = [ "DESTDIR=$(out)" ];
# Borrowed from Arch Linux's AUR
patches = [
# Adds executable permissions to resulting libraries
# and changes their destination directory from "usr/lib/alsa-lib" to "lib/alsa-lib" to better align with nixpkgs filesystem hierarchy.
./makefile.patch
];
postPatch = ''
sed -i 's#/usr/lib/ladspa/caps\.so#${caps}/lib/ladspa/caps\.so#g' ctl_equal.c pcm_equal.c
'';
preInstall = ''
mkdir -p "$out/lib/alsa-lib"
'';
meta = with lib; {
description = "Real-time adjustable equalizer plugin for ALSA";
homepage = "https://github.com/bassdr/alsaequal";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ ymeister ];
};
}