expect: fix postInstall library suffix on darwin

This commit is contained in:
Vladimír Čunát 2013-09-04 10:15:32 +02:00
parent 590cee5d19
commit 90575ababb

View File

@ -31,7 +31,8 @@ stdenv.mkDerivation {
"--exec-prefix=$out" "--exec-prefix=$out"
]; ];
postInstall="cp expect $out/bin; mkdir -p $out/lib; cp *.so $out/lib"; postInstall = let libSuff = if stdenv.isDarwin then "dylib" else "so";
in "cp expect $out/bin; mkdir -p $out/lib; cp *.${libSuff} $out/lib";
meta = { meta = {
description = "A tool for automating interactive applications"; description = "A tool for automating interactive applications";