git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #11432 from edanaher/fvwm-gestures

Fvwm: add gestures and create libstroke package

commita190cb7636ff57737fae695c043805f1536aaefe authorSou Bunnbu <iyzsong@member.fsf.org> dateWed 9 Dec 2015, 16:25 (11 years ago) parentc16f90f523d684
3 files changed+41−2
pkgs/applications/window-managers/fvwm/default.nix+6−2 pkgs/development/libraries/libstroke/default.nix+33 pkgs/top-level/all-packages.nix+2
pkgs/applications/window-managers/fvwm/default.nix+6−2
@@ -1,8 +1,12 @@
1−{ stdenv, fetchurl, pkgconfig
1+{ gestures ? false
2+, stdenv, fetchurl, pkgconfig
23, cairo, fontconfig, freetype, libXft, libXcursor, libXinerama
34, libXpm, librsvg, libpng, fribidi, perl
5+, libstroke ? null
46}:
57
8+assert gestures -> libstroke != null;
9+
610stdenv.mkDerivation rec {
711 name = "fvwm-2.6.5";
812
@@ -15,7 +19,7 @@ stdenv.mkDerivation rec {
1519 pkgconfig cairo fontconfig freetype
1620 libXft libXcursor libXinerama libXpm
1721 librsvg libpng fribidi perl
18− ];
22+ ] ++ stdenv.lib.optional gestures libstroke;
1923
2024 meta = {
2125 homepage = "http://fvwm.org";
pkgs/development/libraries/libstroke/default.nixnew file+33
@@ -0,0 +1,33 @@
1+{stdenv, fetchurl, automake, autoconf, x11}:
2+
3+stdenv.mkDerivation {
4+ name = "libstroke-0.5.1";
5+
6+ src = fetchurl {
7+ url = http://etla.net/libstroke/libstroke-0.5.1.tar.gz;
8+ sha256 = "0da9f5fde66feaf6697ba069baced8fb3772c3ddc609f39861f92788f5c7772d";
9+ };
10+
11+ buildInputs = [ automake autoconf x11 ];
12+
13+ # libstroke ships with an ancient config.sub that doesn't know about x86_64, so regenerate it.
14+ # Also, modern automake doesn't like things and returns error code 63. But it generates the file.
15+ preConfigure = ''
16+ rm config.sub
17+ autoconf
18+ automake -a || true
19+ '';
20+
21+ meta = {
22+ description = "libstroke, a library for simple gesture recognition";
23+ homepage = http://etla.net/libstroke/;
24+ license = stdenv.lib.licenses.gpl2;
25+
26+ longDescription =
27+ '' libstroke, last updated in 2001, still successfully provides a basic
28+ gesture recognition engine based around a 3x3 grid. It's simple and
29+ easy to work with, and notably used by FVWM.
30+ '';
31+
32+ };
33+}
pkgs/top-level/all-packages.nix+2
@@ -7523,6 +7523,8 @@ let
75237523
75247524 libstartup_notification = callPackage ../development/libraries/startup-notification { };
75257525
7526+ libstroke = callPackage ../development/libraries/libstroke { };
7527+
75267528 libstrophe = callPackage ../development/libraries/libstrophe { };
75277529
75287530 libspatialindex = callPackage ../development/libraries/libspatialindex { };