nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 52 lines 1.3 kB view raw
1{ stdenv, lib, fetchurl, perlPackages 2, autoconf, perl, gperf, optipng, pngnq, rsync, imagemagick, blitz 3, pkg-config, glib, boost, makeWrapper 4}: 5 6let 7 perl-deps = with perlPackages; [ 8 AnyEvent AnyEventAIO AnyEventBDB AnyEventIRC 9 CompressLZF commonsense Coro CoroEV 10 Deliantra DigestSHA1 EV PodPOM SafeHole URI YAMLLibYAML 11 ]; 12in 13stdenv.mkDerivation rec { 14 pname = "deliantra-server"; 15 version = "3.1"; 16 17 src = fetchurl { 18 url = "http://dist.schmorp.de/deliantra/${pname}-${version}.tar.xz"; 19 sha256 = "0v0m2m9fxq143aknh7jb3qj8bnpjrs3bpbbx07c18516y3izr71d"; 20 }; 21 22 nativeBuildInputs = [ 23 autoconf perl gperf optipng pngnq rsync imagemagick 24 pkg-config makeWrapper 25 ]; 26 27 propagatedBuildInputs = perl-deps; 28 29 buildInputs = [ 30 blitz boost glib 31 ]; 32 33 hardeningDisable = [ "format" ]; 34 35 patches = [ 36 ./0001-abs.patch 37 ./0002-datadir.patch 38 ]; 39 40 postFixup = '' 41 wrapProgram $out/bin/cfutil --prefix PERL5LIB : $PERL5LIB 42 wrapProgram $out/bin/deliantra-server --prefix PERL5LIB : $PERL5LIB 43 ''; 44 45 meta = with lib; { 46 description = "Server for the Deliantra free MMORPG"; 47 homepage = "http://www.deliantra.net/"; 48 license = with licenses; [ gpl2Plus agpl3Plus ]; 49 platforms = platforms.linux; 50 maintainers = with maintainers; [ ToxicFrog ]; 51 }; 52}