screen: Only depend on PAM on Linux
This commit is contained in:
parent
77dc219127
commit
25ca1c30e2
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user