Skip to content

Commit

Permalink
eggdrop: fix tcllib reference on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
LnL7 committed Sep 9, 2017
1 parent 4ff9e9e commit 479c15b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/tools/networking/eggdrop/default.nix
@@ -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";
Expand All @@ -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"
];

Expand Down

0 comments on commit 479c15b

Please sign in to comment.