pinball: 0.3.20201218 -> 0.3.20201218-unstable-2024-11-14
Fixes build, and uses modern SDL. Source repo and homepage are updated to GitHub repo linked from the old Sourceforge one.
This commit is contained in:
parent
7813ce3784
commit
02d6fd212f
@ -1,23 +1,26 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
fetchurl,
|
fetchFromGitHub,
|
||||||
autoreconfHook,
|
autoreconfHook,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
libglvnd,
|
libglvnd,
|
||||||
SDL,
|
libtool,
|
||||||
SDL_image,
|
SDL2,
|
||||||
SDL_mixer,
|
SDL2_image,
|
||||||
|
SDL2_mixer,
|
||||||
xorg,
|
xorg,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "pinball";
|
pname = "pinball";
|
||||||
version = "0.3.20201218";
|
version = "0.3.20201218-unstable-2024-11-14";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "mirror://sourceforge/pinball/pinball-${version}.tar.gz";
|
owner = "adoptware";
|
||||||
sha256 = "0vacypp3ksq1hs6hxpypx7nrfkprbl4ksfywcncckwrh4qcir631";
|
repo = "pinball";
|
||||||
|
rev = "7f6887d8912340c0eee7f96b4c4bb84c8d889246";
|
||||||
|
hash = "sha256-8wuux7eC0OkgL/m20eyRGRrAF1lBGAbd7Gmid9cNPto=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -30,26 +33,23 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libglvnd
|
libglvnd
|
||||||
SDL
|
libtool
|
||||||
SDL_image
|
SDL2
|
||||||
SDL_mixer
|
SDL2_image
|
||||||
|
SDL2_mixer
|
||||||
xorg.libSM
|
xorg.libSM
|
||||||
];
|
];
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
||||||
configureFlags = [
|
|
||||||
"--with-sdl-prefix=${lib.getDev SDL}"
|
|
||||||
];
|
|
||||||
|
|
||||||
env.NIX_CFLAGS_COMPILE = toString [
|
env.NIX_CFLAGS_COMPILE = toString [
|
||||||
"-I${lib.getDev SDL_image}/include/SDL"
|
"-I${lib.getDev SDL2_image}/include/SDL2"
|
||||||
"-I${lib.getDev SDL_mixer}/include/SDL"
|
"-I${lib.getDev SDL2_mixer}/include/SDL2"
|
||||||
];
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://purl.org/rzr/pinball";
|
homepage = "https://github.com/adoptware/pinball";
|
||||||
description = "Emilia Pinball simulator";
|
description = "Emilia Pinball simulator";
|
||||||
license = licenses.gpl2Only;
|
license = licenses.gpl2Only;
|
||||||
maintainers = with maintainers; [ qyliss ];
|
maintainers = with maintainers; [ qyliss ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user