depot/pkgs/by-name/wi/windowmaker/dockapps/AlsaMixer-app.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

47 lines
827 B
Nix

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