summary refs log tree commit diff
path: root/pkgs/desktops/gnome-3/extensions/volume-mixer.nix
blob: 072d31b84fedbf8784a47f49378fd6e60d67769c (plain) (blame)
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
{ stdenv, fetchFromGitHub, glib }:

stdenv.mkDerivation rec {
  pname = "gnome-shell-volume-mixer";
  version = "844ed80ad448855d8f6218847183a80474b523c7";

  src = fetchFromGitHub {
    owner = "aleho";
    repo = "gnome-shell-volume-mixer";
    rev = version;
    sha256 = "1vcj2spbymhdi1nazvhldvcfgad23r3h7f0ihh4nianbxn7hjs9w";
  };

  buildInputs = [
    glib
  ];

  buildPhase = ''
    glib-compile-schemas --targetdir=${uuid}/schemas ${uuid}/schemas
  '';

  installPhase = ''
    cp -r ${uuid} $out
  '';

  uuid = "shell-volume-mixer@derhofbauer.at";

  meta = with stdenv.lib; {
    description = "GNOME Shell Extension allowing separate configuration of PulseAudio devices";
    license = licenses.gpl2;
    maintainers = with maintainers; [ aneeshusa ];
    homepage = https://github.com/aleho/gnome-shell-volume-mixer;
  };
}