treewide: Use *Platform.extensions

This commit is contained in:
John Ericson
2017-09-13 11:16:10 -04:00
parent 741839a687
commit 5aec3f96a2
17 changed files with 44 additions and 64 deletions
+1 -5
View File
@@ -1,9 +1,5 @@
{ stdenv, fetchFromGitHub, tcl }:
let
shlib = if stdenv.isDarwin then "dylib" else "so";
in
stdenv.mkDerivation rec {
name = "eggdrop-${version}";
version = "1.6.21-nix1";
@@ -29,7 +25,7 @@ stdenv.mkDerivation rec {
'';
configureFlags = [
"--with-tcllib=${tcl}/lib/lib${tcl.libPrefix}.${shlib}"
"--with-tcllib=${tcl}/lib/lib${tcl.libPrefix}${stdenv.hostPlatform.extensions.sharedLibrary}"
"--with-tclinc=${tcl}/include/tcl.h"
];