1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/networking/eggdrop/default.nix

37 lines
761 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, tcl }:
2015-04-27 05:30:28 +01:00
stdenv.mkDerivation rec {
name = "eggdrop-${version}";
version = "1.6.21-nix1";
src = fetchFromGitHub {
owner = "eggheads";
repo = "eggdrop";
rev = "9ec109a13c016c4cdc7d52b7e16e4b9b6fbb9331";
sha256 = "0mf1vcbmpnvmf5mxk7gi3z32fxpcbynsh9jni8z8frrscrdf5lp5";
};
2015-04-27 05:30:28 +01:00
buildInputs = [ tcl ];
hardeningDisable = [ "format" ];
preConfigure = ''
prefix=$out/eggdrop
mkdir -p $prefix
'';
postConfigure = ''
make config
'';
2015-04-27 05:30:28 +01:00
configureFlags = [
2017-09-12 20:36:41 +01:00
"--with-tcllib=${tcl}/lib/lib${tcl.libPrefix}${stdenv.hostPlatform.extensions.sharedLibrary}"
2015-04-27 05:30:28 +01:00
"--with-tclinc=${tcl}/include/tcl.h"
];
meta = with stdenv.lib; {
license = licenses.gpl2;
platforms = platforms.unix;
};
}