From 95e823d4d48e135bf1c5d3482577f31095503c20 Mon Sep 17 00:00:00 2001 From: Alexey Shmalko Date: Sun, 3 Jan 2016 07:03:14 +0200 Subject: [PATCH] xxkb: Init at 1.11.1 --- pkgs/applications/misc/xxkb/default.nix | 37 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 39 insertions(+) create mode 100644 pkgs/applications/misc/xxkb/default.nix diff --git a/pkgs/applications/misc/xxkb/default.nix b/pkgs/applications/misc/xxkb/default.nix new file mode 100644 index 00000000000..8d46738327f --- /dev/null +++ b/pkgs/applications/misc/xxkb/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchurl, libX11, libXt, libXext, libXpm, imake +, svgSupport ? true, librsvg, glib, gdk_pixbuf, pkgconfig +}: + +assert svgSupport -> + librsvg != null && glib != null && gdk_pixbuf != null && pkgconfig != null; + +stdenv.mkDerivation rec { + name = "xxkb-1.11.1"; + + src = fetchurl { + url = "mirror://sourceforge/xxkb/${name}-src.tar.gz"; + sha256 = "0hl1i38z9xnbgfjkaz04vv1n8xbgfg88g5z8fyzyb2hxv2z37anf"; + }; + + buildInputs = [ + imake + libX11 libXt libXext libXpm + ] ++ stdenv.lib.optional svgSupport [ librsvg glib gdk_pixbuf pkgconfig ]; + + configurePhase = '' + xmkmf ${stdenv.lib.optionalString svgSupport "-DWITH_SVG_SUPPORT"} + ''; + + preBuild = '' + makeFlagsArray=( BINDIR=$out/bin PIXMAPDIR=$out/share/xxkb XAPPLOADDIR=$out/etc/X11/app-defaults MANDIR=$out/man ) + ''; + + installTargets = "install install.man"; + + meta = { + description = "A keyboard layout indicator and switcher"; + homepage = "http://xxkb.sourceforge.net/"; + license = stdenv.lib.licenses.artistic2; + platforms = stdenv.lib.platforms.linux; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3b3c64b6446..ba8497aa101 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3523,6 +3523,8 @@ let xcruiser = callPackage ../applications/misc/xcruiser { }; + xxkb = callPackage ../applications/misc/xxkb { }; + unarj = callPackage ../tools/archivers/unarj { }; unshield = callPackage ../tools/archivers/unshield { };