nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 44 lines 1.5 kB view raw
1{ lib, stdenv, fetchurl, libGLU, libGL, glew, pkg-config, openalSoft, freealut, wxGTK32, libogg 2, freetype, libvorbis, fftwSinglePrec, SDL, SDL_net, expat, libjpeg, libpng }: 3 4stdenv.mkDerivation rec { 5 version = "44"; 6 pname = "scorched3d"; 7 src = fetchurl { 8 url = "mirror://sourceforge/scorched3d/Scorched3D-${version}-src.tar.gz"; 9 sha256 = "1fldi9pn7cz6hc9h70pacgb7sbykzcac44yp3pkhn0qh4axj10qw"; 10 }; 11 12 buildInputs = 13 [ libGLU libGL glew openalSoft freealut wxGTK32 libogg freetype libvorbis 14 SDL SDL_net expat libjpeg libpng fftwSinglePrec 15 ]; 16 17 nativeBuildInputs = [ pkg-config ]; 18 19 patches = [ 20 ./file-existence.patch 21 (fetchurl { 22 url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/games-strategy/scorched3d/files/scorched3d-44-fix-c++14.patch?id=1bbcfc9ae3dfdfcbdd35151cb7b6050776215e4d"; 23 sha256 = "1farmjxbc2wm4scsdbdnvh29fipnb6mp6z85hxz4bx6n9kbc8y7n"; 24 }) 25 (fetchurl { 26 url = "https://sources.debian.org/data/main/s/scorched3d/44%2Bdfsg-7/debian/patches/wx3.0-compat.patch"; 27 sha256 = "sha256-Y5U5yYNT5iMqhdRaDMFtZ4K7aD+pugFZP0jLh7rdDp8="; 28 }) 29 ]; 30 31 sourceRoot = "scorched"; 32 33 configureFlags = [ "--with-fftw=${fftwSinglePrec.dev}" ]; 34 35 NIX_LDFLAGS = "-lopenal"; 36 37 meta = with lib; { 38 homepage = "http://scorched3d.co.uk/"; 39 description = "3D Clone of the classic Scorched Earth"; 40 license = licenses.gpl2Plus; 41 platforms = platforms.linux; # maybe more 42 maintainers = with maintainers; [ abbradar ]; 43 }; 44}