eggdrop: fix tcllib reference on darwin

This commit is contained in:
Daiderd Jordan 2017-09-09 22:42:27 +02:00
parent 4ff9e9e333
commit 479c15b08b
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -1,5 +1,9 @@
{ stdenv, fetchFromGitHub, tcl }:
let
shlib = if stdenv.isDarwin then "dylib" else "so";
in
stdenv.mkDerivation rec {
name = "eggdrop-${version}";
version = "1.6.21-nix1";
@ -25,7 +29,7 @@ stdenv.mkDerivation rec {
'';
configureFlags = [
"--with-tcllib=${tcl}/lib/lib${tcl.libPrefix}.so"
"--with-tcllib=${tcl}/lib/lib${tcl.libPrefix}.${shlib}"
"--with-tclinc=${tcl}/include/tcl.h"
];