kbd: 2.0.3 -> 2.0.4

This commit is contained in:
rnhmjoj
2017-07-26 16:58:53 +03:00
committed by Nikolay Amiantov
parent 61764cbba4
commit fd43b50877
3 changed files with 49 additions and 64 deletions
+13 -4
View File
@@ -1,12 +1,15 @@
{ stdenv, fetchurl, autoreconfHook, gzip, bzip2, pkgconfig, flex, check, pam }:
{ stdenv, fetchurl, autoreconfHook,
gzip, bzip2, pkgconfig, flex, check,
pam, coreutils
}:
stdenv.mkDerivation rec {
name = "kbd-${version}";
version = "2.0.3";
version = "2.0.4";
src = fetchurl {
url = "mirror://kernel/linux/utils/kbd/${name}.tar.xz";
sha256 = "0ppv953gn2zylcagr4z6zg5y2x93dxrml29plypg6xgbq3hrv2bs";
sha256 = "124swm93dm4ca0pifgkrand3r9gvj3019d4zkfxsj9djpvv0mnaz";
};
configureFlags = [
@@ -15,7 +18,7 @@ stdenv.mkDerivation rec {
"--disable-nls"
];
patches = [ ./console-fix.patch ./search-paths.patch ];
patches = [ ./search-paths.patch ];
postPatch =
''
@@ -34,6 +37,12 @@ stdenv.mkDerivation rec {
''}
'';
postInstall = ''
substituteInPlace $out/bin/unicode_{start,stop} \
--replace /usr/bin/tty ${coreutils}/bin/tty
'';
buildInputs = [ check pam ];
nativeBuildInputs = [ autoreconfHook pkgconfig flex ];