riko4: drop

The package in nixpkgs was basically unmaintained since 2018.
It's maintainer in nixpkgs is inactive since 2022.
It dependended on the already dropped SDL_gpu package, which it pinned internally.
This now also started failing to build.
While upstream has a newer version of `riko4` available,
it does not remove the SDL_gpu dependency or fix its issues.
This commit is contained in:
Grimmauld
2025-05-18 12:34:49 +02:00
parent 616e381988
commit 3035235407
2 changed files with 1 additions and 85 deletions
-85
View File
@@ -1,85 +0,0 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
SDL2,
libGLU,
luajit,
curl,
curlpp,
}:
let
# Newer versions of sdl-gpu don't work with Riko4 (corrupted graphics),
# and this library does not have a proper release version, so let the
# derivation for this stay next to the Riko4 derivation for now.
sdl-gpu = stdenv.mkDerivation {
pname = "sdl-gpu";
version = "2018-11-01";
src = fetchFromGitHub {
owner = "grimfang4";
repo = "sdl-gpu";
rev = "a4ff1ab02410f154b004c29ec46e07b22890fa1f";
sha256 = "1wdwg331s7r4dhq1l8w4dvlqf4iywskpdrscgbwrz9j0c6nqqi3v";
};
buildInputs = [
SDL2
libGLU
];
nativeBuildInputs = [ cmake ];
meta = with lib; {
homepage = "https://github.com/grimfang4/sdl-gpu";
description = "Library for high-performance, modern 2D graphics with SDL written in C";
license = licenses.mit;
maintainers = with maintainers; [ CrazedProgrammer ];
};
};
in
stdenv.mkDerivation rec {
pname = "riko4";
version = "0.1.0";
src = fetchFromGitHub {
owner = "incinirate";
repo = "Riko4";
rev = "v${version}";
sha256 = "008i9991sn616dji96jfwq6gszrspbx4x7cynxb1cjw66phyy5zp";
};
buildInputs = [
SDL2
luajit
sdl-gpu
curl
curlpp
];
nativeBuildInputs = [ cmake ];
hardeningDisable = [ "fortify" ];
cmakeFlags = [ "-DSDL2_gpu_INCLUDE_DIR=\"${sdl-gpu}/include\"" ];
# Riko4 needs the data/ and scripts/ directories to be in its PWD.
installPhase = ''
install -Dm0755 riko4 $out/bin/.riko4-unwrapped
mkdir -p $out/lib/riko4
cp -r ../data $out/lib/riko4
cp -r ../scripts $out/lib/riko4
cat > $out/bin/riko4 <<EOF
#!/bin/sh
pushd $out/lib/riko4 > /dev/null
exec $out/bin/.riko4-unwrapped "\$@"
popd > /dev/null
EOF
chmod +x $out/bin/riko4
'';
meta = with lib; {
homepage = "https://github.com/incinirate/Riko4";
description = "Fantasy console for pixel art game development";
mainProgram = "riko4";
license = licenses.mit;
maintainers = with maintainers; [ CrazedProgrammer ];
};
}
+1
View File
@@ -1639,6 +1639,7 @@ mapAliases {
rftg = throw "'rftg' has been removed due to lack of maintenance upstream."; # Added 2024-12-04
rigsofrods = rigsofrods-bin; # Added 2023-03-22
ring-daemon = throw "'ring-daemon' has been renamed to/replaced by 'jami-daemon'"; # Converted to throw 2024-10-17
riko4 = throw "'riko4' has been removed as it was unmaintained, failed to build and dependend on outdated libraries"; # Added 2025-05-18
rippled = throw "rippled has been removed as it was broken and had not been updated since 2022"; # Added 2024-11-25
rippled-validator-keys-tool = throw "rippled-validator-keys-tool has been removed as it was broken and had not been updated since 2022"; # Added 2024-11-25
rke2_testing = throw "'rke2_testing' has been removed from nixpkgs as the RKE2 testing channel no longer serves releases"; # Added 2025-06-02