Patch kbd to add the dvorak programmer (dvp) keymap

This commit is contained in:
Mayeu 2015-01-30 14:22:09 +01:00 committed by Peter Simons
parent cfb29ab882
commit 5dab625862

View File

@ -8,15 +8,24 @@ stdenv.mkDerivation rec {
sha256 = "1vcl2791xshjdpi4w88iy87gkb7zv0dbvi83f98v30dvqc9mfl46"; sha256 = "1vcl2791xshjdpi4w88iy87gkb7zv0dbvi83f98v30dvqc9mfl46";
}; };
configureFlags = "--disable-nls"; /* Get the dvorak programmer keymap (present in X but not in kbd) */
dvpSrc = fetchurl {
url = "http://kaufmann.no/downloads/linux/dvp-1_2_1.map.gz";
sha256 = "0e859211cfe16a18a3b9cbf2ca3e280a23a79b4e40b60d8d01d0fde7336b6d50";
};
configureFlags = "--disable-nls";
patchPhase = patchPhase =
'' ''
# Add the dvp keyboard in the dvorak folder
${gzip}/bin/gzip -c -d ${dvpSrc} > data/keymaps/i386/dvorak/dvp.map
# Fix the path to gzip/bzip2. # Fix the path to gzip/bzip2.
substituteInPlace src/findfile.c \ substituteInPlace src/findfile.c \
--replace gzip ${gzip}/bin/gzip \ --replace gzip ${gzip}/bin/gzip \
--replace bzip2 ${bzip2}/bin/bzip2 \ --replace bzip2 ${bzip2}/bin/bzip2 \
# We get a warning in armv5tel-linux and the fuloong2f, so we # We get a warning in armv5tel-linux and the fuloong2f, so we
# disable -Werror in it. # disable -Werror in it.
${stdenv.lib.optionalString (stdenv.isArm || stdenv.system == "mips64el-linux") '' ${stdenv.lib.optionalString (stdenv.isArm || stdenv.system == "mips64el-linux") ''