summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kbd
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-03-09 02:14:19 +0100
committeraszlig <aszlig@redmoonstudios.org>2015-03-09 19:42:59 +0100
commit8cd6d53930dcde2e4bfe79f449916de6847daa6c (patch)
tree87a87a1d53700766ecbca96b289791da1c50da98 /pkgs/os-specific/linux/kbd
parent362f2db25887d542eff2b938b2bb4a3eaebef268 (diff)
downloadnixpkgs-8cd6d53930dcde2e4bfe79f449916de6847daa6c.tar
nixpkgs-8cd6d53930dcde2e4bfe79f449916de6847daa6c.tar.gz
nixpkgs-8cd6d53930dcde2e4bfe79f449916de6847daa6c.tar.bz2
nixpkgs-8cd6d53930dcde2e4bfe79f449916de6847daa6c.tar.lz
nixpkgs-8cd6d53930dcde2e4bfe79f449916de6847daa6c.tar.xz
nixpkgs-8cd6d53930dcde2e4bfe79f449916de6847daa6c.tar.zst
nixpkgs-8cd6d53930dcde2e4bfe79f449916de6847daa6c.zip
kbd: Patch in support for the Neo keyboard layout.
This adds support for the Neo keyboard layout (http://neo-layout.org/, a
layout optimized for the German language) for the native Linux console.

It also adds build dependencies on autotools and friends, because we
need to recreate the automake config in order to include a new keyboard
layout directory.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/os-specific/linux/kbd')
-rw-r--r--pkgs/os-specific/linux/kbd/default.nix18
1 files changed, 17 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/kbd/default.nix b/pkgs/os-specific/linux/kbd/default.nix
index 2355fec1b52..673ad5d3165 100644
--- a/pkgs/os-specific/linux/kbd/default.nix
+++ b/pkgs/os-specific/linux/kbd/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, gzip, bzip2 }:
+{ stdenv, fetchurl, autoconf, automake, libtool, gzip, bzip2 }:
 
 stdenv.mkDerivation rec {
   name = "kbd-1.15.3";
@@ -14,10 +14,24 @@ stdenv.mkDerivation rec {
     sha256 = "0e859211cfe16a18a3b9cbf2ca3e280a23a79b4e40b60d8d01d0fde7336b6d50";
   };
 
+  neoSrc = fetchurl {
+    name = "neo.map";
+    url = "https://svn.neo-layout.org/linux/console/neo.map?r=2455";
+    sha256 = "1wlgp09wq84hml60hi4ls6d4zna7vhycyg40iipyh1279i91hsx7";
+  };
+
   configureFlags = "--disable-nls";
 
+  preConfigure = ''
+    sh autogen.sh
+  '';
+
   patchPhase =
     ''
+      mkdir -p data/keymaps/i386/neo
+      cat "$neoSrc" > data/keymaps/i386/neo/neo.map
+      sed -i -e 's,^KEYMAPSUBDIRS *= *,&i386/neo ,' data/Makefile.in
+
       # Add the dvp keyboard in the dvorak folder
       ${gzip}/bin/gzip -c -d ${dvpSrc} > data/keymaps/i386/dvorak/dvp.map
 
@@ -33,6 +47,8 @@ stdenv.mkDerivation rec {
       ''}
     '';
 
+  buildInputs = [ autoconf automake libtool ];
+
   makeFlags = "setowner= ";
 
   meta = {