pommed-light: init at 1.50lw

authored by Balletie and committed by Joachim Fasting 66c745e3 1cc8b830

+67
+65
pkgs/os-specific/linux/pommed-light/default.nix
··· 1 + { 2 + stdenv 3 + , fetchurl 4 + , pciutils 5 + , confuse 6 + , alsaLib 7 + , audiofile 8 + , pkgconfig 9 + , zlib 10 + , eject 11 + }: 12 + 13 + stdenv.mkDerivation rec { 14 + pkgname = "pommed-light"; 15 + version = "1.50lw"; 16 + name = "${pkgname}-${version}"; 17 + 18 + src = fetchurl { 19 + url = "https://github.com/bytbox/${pkgname}/archive/v${version}.tar.gz"; 20 + 21 + sha256 = "1r2f28zqmyvzgymd0ng53hscbrq8vcqhxdnkq5dppjf9yrzn018b"; 22 + }; 23 + 24 + postPatch = '' 25 + substituteInPlace pommed.conf.mactel --replace /usr $out 26 + substituteInPlace pommed.conf.pmac --replace /usr $out 27 + substituteInPlace pommed/beep.h --replace /usr $out 28 + substituteInPlace pommed/cd_eject.c --replace /usr/bin/eject ${eject}/bin/eject 29 + ''; 30 + 31 + buildInputs = [ 32 + pciutils 33 + confuse 34 + alsaLib 35 + audiofile 36 + pkgconfig 37 + zlib 38 + eject 39 + ]; 40 + 41 + installPhase = '' 42 + install -Dm755 pommed/pommed $out/bin/pommed 43 + install -Dm644 pommed.conf.mactel $out/etc/pommed.conf.mactel 44 + install -Dm644 pommed.conf.pmac $out/etc/pommed.conf.pmac 45 + 46 + # Man page 47 + install -Dm644 pommed.1 $out/share/man/man1/pommed.1 48 + 49 + # Sounds 50 + install -Dm644 pommed/data/goutte.wav $out/share/pommed/goutte.wav 51 + install -Dm644 pommed/data/click.wav $out/share/pommed/click.wav 52 + ''; 53 + 54 + meta = { 55 + description = "A trimmed version of the pommed hotkey handler for MacBooks"; 56 + longDescription = '' 57 + This is a stripped-down version of pommed with client, dbus, and 58 + ambient light sensor support removed, optimized for use with dwm 59 + and the like. 60 + ''; 61 + homepage = https://github.com/bytbox/pommed-light; 62 + platforms = stdenv.lib.platforms.linux; 63 + license = stdenv.lib.licenses.gpl2; 64 + }; 65 + }
+2
pkgs/top-level/all-packages.nix
··· 14455 14455 14456 14456 pommed = callPackage ../os-specific/linux/pommed {}; 14457 14457 14458 + pommed_light = callPackage ../os-specific/linux/pommed-light {}; 14459 + 14458 14460 pond = callPackage ../applications/networking/instant-messengers/pond { }; 14459 14461 14460 14462 ponymix = callPackage ../applications/audio/ponymix { };