mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
9833d56c24
Done with the help of https://github.com/Mindavi/nixpkgs-mark-broken Tool is still WIP but this is one of the first results. I manually audited the results and removed some results that were not valid. Note that some of these packages maybe should have more constrained platforms set instead of broken set, but I think not being perfectly correct is better than just keep trying to build all these things and never succeeding. Some observations: - Some darwin builds require XCode tools - aarch64-linux builds sometimes suffer from using gcc9 - gcc9 is getting older and misses some new libraries/features - Sometimes tools try to do system detection or expect some explicit settings for platforms that are not x86_64-linux
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl, fftwSinglePrec, freetype, SDL, SDL_ttf }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "quantumminigolf";
|
|
version = "1.1.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/project/quantumminigolf/quantumminigolf/${version}/quantumminigolf-${version}.src.tar.gz";
|
|
sha256 = "sha256-Y3LUGk6pAuNGVOYkc0WYDbgJFtwJJn+aLRHmCKY7W5k=";
|
|
};
|
|
|
|
buildInputs = [
|
|
fftwSinglePrec
|
|
freetype
|
|
SDL
|
|
SDL_ttf
|
|
];
|
|
|
|
preBuild = ''
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${lib.getDev SDL}/include/SDL -I${SDL_ttf}/include/SDL"
|
|
|
|
sed -re 's@"(gfx|fonts|tracks)/@"'"$out"'/share/quantumminigolf/\1/@g' -i *.cpp
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p "$out"/{share/doc,share/quantumminigolf,bin}
|
|
cp README THANKS LICENSE "$out/share/doc"
|
|
cp -r fonts gfx tracks "$out/share/quantumminigolf"
|
|
cp quantumminigolf "$out/bin"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Quantum mechanics-based minigolf-like game";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ raskin ];
|
|
platforms = platforms.linux;
|
|
# never built on aarch64-linux since first introduction in nixpkgs
|
|
broken = stdenv.isLinux && stdenv.isAarch64;
|
|
};
|
|
}
|