mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
pommed-light: init at 1.50lw
This commit is contained in:
parent
1cc8b83079
commit
66c745e30d
65
pkgs/os-specific/linux/pommed-light/default.nix
Normal file
65
pkgs/os-specific/linux/pommed-light/default.nix
Normal file
@ -0,0 +1,65 @@
|
||||
{
|
||||
stdenv
|
||||
, fetchurl
|
||||
, pciutils
|
||||
, confuse
|
||||
, alsaLib
|
||||
, audiofile
|
||||
, pkgconfig
|
||||
, zlib
|
||||
, eject
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pkgname = "pommed-light";
|
||||
version = "1.50lw";
|
||||
name = "${pkgname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/bytbox/${pkgname}/archive/v${version}.tar.gz";
|
||||
|
||||
sha256 = "1r2f28zqmyvzgymd0ng53hscbrq8vcqhxdnkq5dppjf9yrzn018b";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pommed.conf.mactel --replace /usr $out
|
||||
substituteInPlace pommed.conf.pmac --replace /usr $out
|
||||
substituteInPlace pommed/beep.h --replace /usr $out
|
||||
substituteInPlace pommed/cd_eject.c --replace /usr/bin/eject ${eject}/bin/eject
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
pciutils
|
||||
confuse
|
||||
alsaLib
|
||||
audiofile
|
||||
pkgconfig
|
||||
zlib
|
||||
eject
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
install -Dm755 pommed/pommed $out/bin/pommed
|
||||
install -Dm644 pommed.conf.mactel $out/etc/pommed.conf.mactel
|
||||
install -Dm644 pommed.conf.pmac $out/etc/pommed.conf.pmac
|
||||
|
||||
# Man page
|
||||
install -Dm644 pommed.1 $out/share/man/man1/pommed.1
|
||||
|
||||
# Sounds
|
||||
install -Dm644 pommed/data/goutte.wav $out/share/pommed/goutte.wav
|
||||
install -Dm644 pommed/data/click.wav $out/share/pommed/click.wav
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A trimmed version of the pommed hotkey handler for MacBooks";
|
||||
longDescription = ''
|
||||
This is a stripped-down version of pommed with client, dbus, and
|
||||
ambient light sensor support removed, optimized for use with dwm
|
||||
and the like.
|
||||
'';
|
||||
homepage = https://github.com/bytbox/pommed-light;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
};
|
||||
}
|
@ -14455,6 +14455,8 @@ in
|
||||
|
||||
pommed = callPackage ../os-specific/linux/pommed {};
|
||||
|
||||
pommed_light = callPackage ../os-specific/linux/pommed-light {};
|
||||
|
||||
pond = callPackage ../applications/networking/instant-messengers/pond { };
|
||||
|
||||
ponymix = callPackage ../applications/audio/ponymix { };
|
||||
|
Loading…
Reference in New Issue
Block a user