aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/window-managers/windowmaker/dockapps/AlsaMixer-app.nix
blob: 4ec021644011ac35f289a5ff987f8621e29d28ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ stdenv, dockapps-sources, pkg-config, libX11, libXpm, libXext, alsaLib }:

stdenv.mkDerivation rec {
  pname = "AlsaMixer.app";
  version = "0.2.1";

  src = dockapps-sources;

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ libX11 libXpm libXext alsaLib ];

  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
  '';

  meta = with stdenv.lib; {
    description = "Alsa mixer application for Windowmaker";
    homepage = "https://www.dockapps.net/alsamixerapp";
    license = licenses.gpl2Plus;
    maintainers = [ maintainers.bstrik ];
  };
}