2023-03-24 00:07:29 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, alsa-lib
|
|
|
|
, fltk13
|
|
|
|
, gtk2
|
|
|
|
, gtk3
|
2023-11-16 04:20:00 +00:00
|
|
|
, makeWrapper
|
2023-03-24 00:07:29 +00:00
|
|
|
, pkg-config
|
2023-11-16 04:20:00 +00:00
|
|
|
, psmisc
|
2023-03-24 00:07:29 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "alsa-tools";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "1.2.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-04-29 16:46:19 +00:00
|
|
|
url = "mirror://alsa/tools/alsa-tools-${finalAttrs.version}.tar.bz2";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-CRXJY0pQL9NlXKnFdNJZvJ55mD2R1Frqz/bzwA+K4+k=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
nativeBuildInputs = [
|
2023-11-16 04:20:00 +00:00
|
|
|
makeWrapper
|
2023-03-24 00:07:29 +00:00
|
|
|
pkg-config
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
buildInputs = [
|
|
|
|
alsa-lib
|
|
|
|
fltk13
|
|
|
|
gtk2
|
|
|
|
gtk3
|
2023-11-16 04:20:00 +00:00
|
|
|
psmisc
|
2023-03-24 00:07:29 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
env.TOOLSET = lib.concatStringsSep " " [
|
|
|
|
"as10k1"
|
|
|
|
"echomixer"
|
|
|
|
"envy24control"
|
|
|
|
"hda-verb"
|
|
|
|
"hdajackretask"
|
|
|
|
"hdajacksensetest"
|
|
|
|
"hdspconf"
|
|
|
|
"hdsploader"
|
|
|
|
"hdspmixer"
|
|
|
|
# "hwmixvolume" # Requires old, unmaintained, abandoned EOL Python 2
|
|
|
|
"ld10k1"
|
|
|
|
# "qlo10k1" # needs Qt
|
|
|
|
"mixartloader"
|
|
|
|
"pcxhrloader"
|
|
|
|
"rmedigicontrol"
|
|
|
|
"sb16_csp"
|
|
|
|
# "seq" # mysterious configure error
|
|
|
|
"sscape_ctl"
|
|
|
|
"us428control"
|
|
|
|
# "usx2yloader" # tries to create /etc/hotplug/usb
|
|
|
|
"vxloader"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configurePhase = ''
|
2023-03-24 00:07:29 +00:00
|
|
|
runHook preConfigure
|
|
|
|
|
|
|
|
for tool in $TOOLSET; do
|
|
|
|
echo "Configuring $tool:"
|
|
|
|
pushd "$tool"
|
|
|
|
./configure --prefix="$out"
|
|
|
|
popd
|
2020-04-24 23:36:52 +00:00
|
|
|
done
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
runHook postConfigure
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
2023-03-24 00:07:29 +00:00
|
|
|
runHook preBuild
|
|
|
|
|
|
|
|
for tool in $TOOLSET; do
|
|
|
|
echo "Building $tool:"
|
|
|
|
pushd "$tool"
|
|
|
|
make
|
|
|
|
popd
|
2020-04-24 23:36:52 +00:00
|
|
|
done
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
runHook postBuild
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2023-03-24 00:07:29 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
for tool in $TOOLSET; do
|
|
|
|
echo "Installing $tool:"
|
|
|
|
pushd "$tool"
|
|
|
|
make install
|
|
|
|
popd
|
2020-04-24 23:36:52 +00:00
|
|
|
done
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
fixupPhase = ''
|
|
|
|
runHook preFixup
|
|
|
|
|
|
|
|
wrapProgram $out/bin/hdajackretask \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ psmisc ]}
|
|
|
|
|
|
|
|
runHook postFixup
|
|
|
|
'';
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.alsa-project.org/";
|
2023-03-24 00:07:29 +00:00
|
|
|
description = "ALSA Tools";
|
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
maintainers = [ lib.maintainers.AndersonTorres ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-03-24 00:07:29 +00:00
|
|
|
})
|