2023-11-16 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, alsa-lib
|
|
|
|
, dockapps-sources
|
|
|
|
, libX11
|
|
|
|
, libXext
|
|
|
|
, libXpm
|
|
|
|
, pkg-config
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-11-12 09:05:59 +00:00
|
|
|
pname = "AlsaMixer.app";
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
inherit (dockapps-sources) version src;
|
2020-11-12 09:05:59 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
sourceRoot = "${finalAttrs.src.name}/AlsaMixer.app";
|
2020-11-12 09:05:59 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2020-11-12 09:05:59 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
buildInputs = [
|
|
|
|
alsa-lib
|
|
|
|
libX11
|
|
|
|
libXpm
|
|
|
|
libXext
|
|
|
|
];
|
2020-11-12 09:05:59 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
hardeningDisable = [ "fortify" ];
|
|
|
|
|
|
|
|
dontConfigure = true;
|
2020-11-12 09:05:59 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2023-11-16 04:20:00 +00:00
|
|
|
install -D -t ${placeholder "out"}/bin/ AlsaMixer.app
|
|
|
|
pushd ${placeholder "out"}/bin
|
|
|
|
ln -vs AlsaMixer.app AlsaMixer
|
2020-11-12 09:05:59 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
meta = {
|
2020-11-12 09:05:59 +00:00
|
|
|
description = "Alsa mixer application for Windowmaker";
|
|
|
|
homepage = "https://www.dockapps.net/alsamixerapp";
|
2023-11-16 04:20:00 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
maintainers = [ ];
|
2020-11-12 09:05:59 +00:00
|
|
|
};
|
2023-11-16 04:20:00 +00:00
|
|
|
})
|