diff options
author | aszlig <aszlig@redmoonstudios.org> | 2014-07-14 14:46:18 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2014-07-14 15:20:23 +0200 |
commit | d7b4a0e115bb46309706285e6005a64eae122568 (patch) | |
tree | 7d13afd3b0893ea12ccf3b47d43f07ec18d29ad3 /overrides/pvolctrl | |
parent | 0aad7f1b85b854feea09308d32c046f68eb45e6b (diff) |
Move new packages from overrides/ into pkgs/.
Those packages aren't actually overrides and thus it doesn't make sense to categorize them into "overrides". Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'overrides/pvolctrl')
-rw-r--r-- | overrides/pvolctrl/default.nix | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/overrides/pvolctrl/default.nix b/overrides/pvolctrl/default.nix deleted file mode 100644 index 25edb27f..00000000 --- a/overrides/pvolctrl/default.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ stdenv, fetchurl, pkgconfig, pulseaudio }: - -stdenv.mkDerivation rec { - name = "pvolctrl-0.23"; - - unpackPhase = let - baseurl = "https://sites.google.com/site/guenterbartsch/blog/" - + "volumecontrolutilityforpulseaudio/"; - makefile = fetchurl { - url = baseurl + "Makefile"; - sha256 = "0l2ffvb617csk6h29y64v6ywhpcp7la6vvcip1w4nq0yry6jhrqz"; - }; - source = fetchurl { - url = baseurl + "pvolctrl.c"; - sha256 = "0vcd5dlw9l47jpabwmmzdvlkn67fz55dr3sryyh56sl263mibjda"; - }; - in '' - mkdir -p "${name}" - sed -e 's|/usr/bin/||' "${makefile}" > "${name}/Makefile" - sed -e 's/PA_VOLUME_MAX/PA_VOLUME_NORM/ - /avg_vol += (avg_vol \* vol_mod) \/ 100;/ { - s/(avg_vol/((int)PA_VOLUME_NORM/ - } - /if (vol_mod)/i \ - if (info->name == NULL || strncmp(info->name, "combined", 8) != 0) \ - return;' "${source}" > "${name}/pvolctrl.c" - sourceRoot="${name}" - ''; - - installPhase = '' - install -D -T pvolctrl "$out/bin/pvolctrl" - ''; - - buildInputs = [ pkgconfig pulseaudio ]; -} |