screen: fix utmp.c compile problem in darwin

Apply the patch specified in http://savannah.gnu.org/bugs/?45359
This commit is contained in:
Allan Espinosa 2015-10-06 22:46:05 +09:00
parent 0915f16167
commit 80ac72bbab

View file

@ -13,6 +13,12 @@ stdenv.mkDerivation rec {
sed -i -e "s|/usr/local|/non-existent|g" -e "s|/usr|/non-existent|g" configure Makefile.in */Makefile.in
'';
# TODO: remove when updating the version of screen. Only a patch for 4.3.1
patches = stdenv.lib.optional stdenv.isDarwin (fetchurl {
url = "http://savannah.gnu.org/file/screen-utmp.patch\?file_id=34815";
sha256 = "192dsa8hm1zw8m638avzhwhnrddgizhyrwaxgwa96zr9vwai2nvc";
});
buildInputs = [ ncurses ] ++ stdenv.lib.optional stdenv.isLinux pam;
doCheck = true;