about summary refs log tree commit diff
path: root/pkgs/tools/misc/screen
diff options
context:
space:
mode:
authorAllan Espinosa <allan.espinosa@outlook.com>2015-10-06 22:46:05 +0900
committerAllan Espinosa <allan.espinosa@outlook.com>2015-10-06 22:46:48 +0900
commit80ac72bbab51694a8bdc502eb4485410a950155c (patch)
tree49cec904310d665db8953cbf9434dc8c788b1dd2 /pkgs/tools/misc/screen
parent0915f161674a557a1625d9c252c76748c837eb7d (diff)
downloadnixlib-80ac72bbab51694a8bdc502eb4485410a950155c.tar
nixlib-80ac72bbab51694a8bdc502eb4485410a950155c.tar.gz
nixlib-80ac72bbab51694a8bdc502eb4485410a950155c.tar.bz2
nixlib-80ac72bbab51694a8bdc502eb4485410a950155c.tar.lz
nixlib-80ac72bbab51694a8bdc502eb4485410a950155c.tar.xz
nixlib-80ac72bbab51694a8bdc502eb4485410a950155c.tar.zst
nixlib-80ac72bbab51694a8bdc502eb4485410a950155c.zip
screen: fix utmp.c compile problem in darwin
Apply the patch specified in http://savannah.gnu.org/bugs/?45359
Diffstat (limited to 'pkgs/tools/misc/screen')
-rw-r--r--pkgs/tools/misc/screen/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/misc/screen/default.nix b/pkgs/tools/misc/screen/default.nix
index 1fe71ae96160..8c132d5ba02f 100644
--- a/pkgs/tools/misc/screen/default.nix
+++ b/pkgs/tools/misc/screen/default.nix
@@ -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;