diff options
author | ymeister <47071325+ymeister@users.noreply.github.com> | 2020-03-07 17:56:11 +0000 |
---|---|---|
committer | ymeister <47071325+ymeister@users.noreply.github.com> | 2020-03-13 13:38:05 +0700 |
commit | 5de1b169eaffe49027d31b066fa185db6fdcdba9 (patch) | |
tree | dd49e42e20071bbc9225ca75047e0a2b3719bbcb /pkgs/tools/audio/alsaequal/default.nix | |
parent | c5e223e1202424a5cef48d37f1f0c400f9a1b72b (diff) | |
download | nixlib-5de1b169eaffe49027d31b066fa185db6fdcdba9.tar nixlib-5de1b169eaffe49027d31b066fa185db6fdcdba9.tar.gz nixlib-5de1b169eaffe49027d31b066fa185db6fdcdba9.tar.bz2 nixlib-5de1b169eaffe49027d31b066fa185db6fdcdba9.tar.lz nixlib-5de1b169eaffe49027d31b066fa185db6fdcdba9.tar.xz nixlib-5de1b169eaffe49027d31b066fa185db6fdcdba9.tar.zst nixlib-5de1b169eaffe49027d31b066fa185db6fdcdba9.zip |
alsaequal: init at 0.6
Co-Authored-By: Doron Behar <doron.behar@gmail.com>
Diffstat (limited to 'pkgs/tools/audio/alsaequal/default.nix')
-rw-r--r-- | pkgs/tools/audio/alsaequal/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/tools/audio/alsaequal/default.nix b/pkgs/tools/audio/alsaequal/default.nix new file mode 100644 index 000000000000..fa11b665cd32 --- /dev/null +++ b/pkgs/tools/audio/alsaequal/default.nix @@ -0,0 +1,42 @@ +{ stdenv, fetchurl +, alsaLib, caps +}: + +stdenv.mkDerivation rec { + name = "alsaequal"; + version = "0.6"; + + src = fetchurl { + url = "https://thedigitalmachine.net/tools/alsaequal-${version}.tar.bz2"; + sha256 = "1w3g9q5z3nrn3mwdhaq6zsg0jila8d102dgwgrhj9vfx58apsvli"; + }; + + buildInputs = [ alsaLib ]; + + 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 + # Fixes control port check, which resulted in false error. + ./false_error.patch + # Fixes name change of an "Eq" to "Eq10" method in version 9 of caps library. + ./caps_9.x.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 stdenv.lib; { + description = "Real-time adjustable equalizer plugin for ALSA"; + homepage = "https://thedigitalmachine.net/alsaequal.html"; + license = licenses.gpl2; + }; +} |