screen: Only depend on PAM on Linux

This commit is contained in:
Eelco Dolstra 2013-11-06 10:47:58 +01:00
parent 77dc219127
commit 25ca1c30e2

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, ncurses, pam }:
{ stdenv, fetchurl, ncurses, pam ? null }:
stdenv.mkDerivation rec {
name = "screen-4.0.3";
@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
sed -i -e "s|/usr/local|/non-existent|g" -e "s|/usr|/non-existent|g" configure Makefile.in */Makefile.in
'';
buildInputs = [ ncurses pam ];
buildInputs = [ ncurses ] ++ stdenv.lib.optional stdenv.isLinux pam;
doCheck = true;