forked from mirrors/nixpkgs
Add a module for the pommed tool for Apple laptop keyboards.
svn path=/nixpkgs/trunk/; revision=33286
This commit is contained in:
parent
836532a54b
commit
f272acd501
19
pkgs/development/libraries/audiofile/default.nix
Normal file
19
pkgs/development/libraries/audiofile/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{ stdenv, fetchurl, alsaLib }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "audiofile-0.3.3";
|
||||||
|
|
||||||
|
buildInputs = [ alsaLib ];
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://audiofile.68k.org/${name}.tar.gz";
|
||||||
|
sha256 = "1qm7z0g1d9rcxi1m87slgdi0rhl94g13dx3d2b05dilghwpgjjgq";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A library for reading and writing audio files in various formats";
|
||||||
|
homepage = http://www.68k.org/~michael/audiofile/;
|
||||||
|
license = "lgpl";
|
||||||
|
maintainers = [ stdenv.lib.maintainers.shlevy ];
|
||||||
|
};
|
||||||
|
}
|
82
pkgs/os-specific/linux/pommed/default.nix
Normal file
82
pkgs/os-specific/linux/pommed/default.nix
Normal file
|
@ -0,0 +1,82 @@
|
||||||
|
{
|
||||||
|
stdenv
|
||||||
|
, fetchurl
|
||||||
|
, pciutils
|
||||||
|
, confuse
|
||||||
|
, dbus, dbus_glib
|
||||||
|
, alsaLib
|
||||||
|
, audiofile
|
||||||
|
, eject
|
||||||
|
, pkgconfig
|
||||||
|
, gtk
|
||||||
|
, gettext
|
||||||
|
, libXpm
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
build_flags_patch = fetchurl {
|
||||||
|
url = http://patch-tracker.debian.org/patch/series/dl/pommed/1.39~dfsg-2/build_flags.patch;
|
||||||
|
sha256 = "109n5v0m91fqf8vqnpqg1zw8mk8fi9pkzqsfrmlavalg4xz49x9j";
|
||||||
|
};
|
||||||
|
|
||||||
|
in
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "pommed-1.39";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://alioth.debian.org/frs/download.php/3583/${name}.tar.gz";
|
||||||
|
sha256 = "18lxywmikanjr5pk1jdqda88dxd2579fpyd332xn4njjhlgwy5fp";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [ build_flags_patch ];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
pciutils
|
||||||
|
confuse
|
||||||
|
dbus
|
||||||
|
alsaLib
|
||||||
|
audiofile
|
||||||
|
eject
|
||||||
|
dbus_glib
|
||||||
|
pkgconfig
|
||||||
|
gtk
|
||||||
|
gettext
|
||||||
|
libXpm
|
||||||
|
];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -pv $out/bin $out/etc/init.d $out/etc/dbus-1/system.d \
|
||||||
|
$out/share/pommed $out/share/gpomme $out/share/applications \
|
||||||
|
$out/share/icons/hicolor/scalable/apps $out/share/pixmaps
|
||||||
|
|
||||||
|
install -v -m755 pommed/pommed wmpomme/wmpomme gpomme/gpomme $out/bin
|
||||||
|
install -v -m644 pommed/data/* $out/share/pommed
|
||||||
|
install -v -m644 pommed.conf.mactel $out/etc/pommed.conf
|
||||||
|
install -v -m644 pommed.init $out/etc/init.d
|
||||||
|
install -v -m644 dbus-policy.conf $out/etc/dbus-1/system.d/pommed.conf
|
||||||
|
|
||||||
|
cp -av gpomme/themes $out/share/gpomme
|
||||||
|
for lang in de es fr it ja; do
|
||||||
|
mkdir -pv $out/share/locale/"$lang"/LC_MESSAGES
|
||||||
|
install -v -m644 gpomme/po/"$lang".mo $out/share/locale/"$lang"/LC_MESSAGES/gpomme.mo
|
||||||
|
done
|
||||||
|
install -v -m644 gpomme/gpomme*.desktop $out/share/applications
|
||||||
|
for size in 128 16 192 22 24 32 36 48 64 72 96; do
|
||||||
|
mkdir -pv $out/share/icons/hicolor/"$size"x"$size"/apps
|
||||||
|
install -v -m644 icons/gpomme_"$size"x"$size".png \
|
||||||
|
$out/share/icons/hicolor/"$size"x"$size"/apps
|
||||||
|
done
|
||||||
|
install -v -m644 icons/gpomme.svg $out/share/icons/hicolor/scalable/apps
|
||||||
|
|
||||||
|
install -v -m644 icons/gpomme_192x192.xpm $out/share/pixmaps/wmpomme.xpm
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A tool to handle hotkeys on Apple laptop keyboards";
|
||||||
|
homepage = http://www.technologeek.org/projects/pommed/index.html;
|
||||||
|
license = "gplv2";
|
||||||
|
maintainers = [ stdenv.lib.maintainers.shlevy ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -3223,6 +3223,8 @@ let
|
||||||
|
|
||||||
aubio = callPackage ../development/libraries/aubio { };
|
aubio = callPackage ../development/libraries/aubio { };
|
||||||
|
|
||||||
|
audiofile = callPackage ../development/libraries/audiofile { };
|
||||||
|
|
||||||
axis = callPackage ../development/libraries/axis { };
|
axis = callPackage ../development/libraries/axis { };
|
||||||
|
|
||||||
babl = callPackage ../development/libraries/babl { };
|
babl = callPackage ../development/libraries/babl { };
|
||||||
|
@ -7173,6 +7175,10 @@ let
|
||||||
gtksharp = gtksharp2;
|
gtksharp = gtksharp2;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pommed = callPackage ../os-specific/linux/pommed {
|
||||||
|
inherit (xorg) libXpm;
|
||||||
|
};
|
||||||
|
|
||||||
pqiv = callPackage ../applications/graphics/pqiv { };
|
pqiv = callPackage ../applications/graphics/pqiv { };
|
||||||
|
|
||||||
# perhaps there are better apps for this task? It's how I had configured my preivous system.
|
# perhaps there are better apps for this task? It's how I had configured my preivous system.
|
||||||
|
|
Loading…
Reference in a new issue