2021-06-10 03:57:09 +01:00
|
|
|
{ lib, stdenv, dockapps-sources, pkg-config, libX11, libXpm, libXext, alsa-lib }:
|
2020-11-09 02:22:43 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "AlsaMixer.app";
|
|
|
|
version = "0.2.1";
|
|
|
|
|
|
|
|
src = dockapps-sources;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-06-10 03:57:09 +01:00
|
|
|
buildInputs = [ libX11 libXpm libXext alsa-lib ];
|
2020-11-09 02:22:43 +00:00
|
|
|
|
|
|
|
setSourceRoot = ''
|
|
|
|
export sourceRoot=$(echo */${pname})
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
install -d ${placeholder "out"}/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
install -t ${placeholder "out"}/bin AlsaMixer.app
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ln -s ${placeholder "out"}/bin/AlsaMixer.app ${placeholder "out"}/bin/AlsaMixer
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-11-09 02:22:43 +00:00
|
|
|
description = "Alsa mixer application for Windowmaker";
|
|
|
|
homepage = "https://www.dockapps.net/alsamixerapp";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.bstrik ];
|
|
|
|
};
|
|
|
|
}
|