Files
nixpkgs/pkgs/by-name/al/alsa-tools/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

116 lines
1.9 KiB
Nix

{
lib,
stdenv,
fetchurl,
alsa-lib,
fltk13,
gtk2,
gtk3,
makeWrapper,
pkg-config,
psmisc,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "alsa-tools";
version = "1.2.14";
src = fetchurl {
url = "mirror://alsa/tools/alsa-tools-${finalAttrs.version}.tar.bz2";
hash = "sha256-+u9v3TnsecmlRz3GOqG2Mxv3ZkqdRSoKgZjOxwFsvG8=";
};
nativeBuildInputs = [
makeWrapper
pkg-config
];
buildInputs = [
alsa-lib
fltk13
gtk2
gtk3
psmisc
];
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"
];
configurePhase = ''
runHook preConfigure
for tool in $TOOLSET; do
echo "Configuring $tool:"
pushd "$tool"
./configure --prefix="$out"
popd
done
runHook postConfigure
'';
buildPhase = ''
runHook preBuild
for tool in $TOOLSET; do
echo "Building $tool:"
pushd "$tool"
make
popd
done
runHook postBuild
'';
installPhase = ''
runHook preInstall
for tool in $TOOLSET; do
echo "Installing $tool:"
pushd "$tool"
make install
popd
done
runHook postInstall
'';
fixupPhase = ''
runHook preFixup
wrapProgram $out/bin/hdajackretask \
--prefix PATH : ${lib.makeBinPath [ psmisc ]}
runHook postFixup
'';
meta = {
homepage = "http://www.alsa-project.org/";
description = "ALSA Tools";
license = lib.licenses.gpl2Plus;
maintainers = [ ];
platforms = lib.platforms.linux;
};
})