nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 41 lines 851 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 tcl, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "eggdrop"; 10 version = "1.9.5"; 11 12 src = fetchurl { 13 url = "https://ftp.eggheads.org/pub/eggdrop/source/${lib.versions.majorMinor version}/eggdrop-${version}.tar.gz"; 14 hash = "sha256-4mkY6opk2YV1ecW2DGYaM38gdz7dgwhrNWUlvrWBc2o="; 15 }; 16 17 buildInputs = [ tcl ]; 18 19 hardeningDisable = [ "format" ]; 20 21 preConfigure = '' 22 prefix=$out/eggdrop 23 mkdir -p $prefix 24 ''; 25 26 postConfigure = '' 27 make config 28 ''; 29 30 configureFlags = [ 31 "--with-tcllib=${tcl}/lib/lib${tcl.libPrefix}${stdenv.hostPlatform.extensions.sharedLibrary}" 32 "--with-tclinc=${tcl}/include/tcl.h" 33 ]; 34 35 meta = with lib; { 36 license = licenses.gpl2Plus; 37 platforms = platforms.unix; 38 homepage = "https://www.eggheads.org"; 39 description = "Internet Relay Chat (IRC) bot"; 40 }; 41}