nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 46 lines 1.1 kB view raw
1{ stdenv 2, lib 3, fetchurl 4, SDL 5, qt4 6}: 7 8stdenv.mkDerivation rec { 9 pname = "tworld2"; 10 version = "2.2.0"; 11 12 src = fetchurl { 13 url = "https://tw2.bitbusters.club/downloads/tworld-${version}-src.tar.gz"; 14 hash = "sha256-USy2F4es0W3xT4aI254OQ02asJKNt3V0Y72LCbXYpfg="; 15 }; 16 17 buildInputs = [ SDL qt4 ]; 18 19 enableParallelBuilding = true; 20 21 postConfigure = '' 22 echo "#define COMPILE_TIME \"$(date -ud "@$SOURCE_DATE_EPOCH" '+%Y %b %e %T %Z')\"" >comptime.h 23 ''; 24 25 makeFlags = [ 26 "bindir=${placeholder "out"}/bin" 27 "sharedir=${placeholder "out"}/share" 28 "mandir=${placeholder "out"}/share/man/en" 29 ]; 30 31 postInstall = '' 32 mkdir -p $out/share/doc/${pname} 33 cp COPYING README docs/tworld2.html $out/share/doc/${pname} 34 35 mkdir $out/share/icons 36 cp tworld.ico tworld2.ico $out/share/icons 37 ''; 38 39 meta = with lib; { 40 homepage = "https://tw2.bitbusters.club/"; 41 description = "Tile World 2: Tile World is a reimplementation of the game Chip's Challenge"; 42 license = licenses.gpl2Plus; 43 maintainers = with maintainers; [ drperceptron ]; 44 platforms = platforms.linux; 45 }; 46}