1 { lib, stdenv, fetchurl, fftwSinglePrec, freetype, SDL, SDL_ttf }:
3 stdenv.mkDerivation rec {
4 pname = "quantumminigolf";
8 url = "mirror://sourceforge/project/quantumminigolf/quantumminigolf/${version}/quantumminigolf-${version}.src.tar.gz";
9 sha256 = "sha256-Y3LUGk6pAuNGVOYkc0WYDbgJFtwJJn+aLRHmCKY7W5k=";
20 export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${lib.getDev SDL}/include/SDL -I${SDL_ttf}/include/SDL"
22 sed -re 's@"(gfx|fonts|tracks)/@"'"$out"'/share/quantumminigolf/\1/@g' -i *.cpp
26 mkdir -p "$out"/{share/doc,share/quantumminigolf,bin}
27 cp README THANKS LICENSE "$out/share/doc"
28 cp -r fonts gfx tracks "$out/share/quantumminigolf"
29 cp quantumminigolf "$out/bin"
33 description = "Quantum mechanics-based minigolf-like game";
34 mainProgram = "quantumminigolf";
35 license = licenses.gpl2Plus;
36 maintainers = with maintainers; [ raskin ];
37 platforms = platforms.linux;
38 # never built on aarch64-linux since first introduction in nixpkgs
39 broken = stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64;