vangers: init at 2.0-unstable-2024-09-30

This commit is contained in:
3JlOy_PYCCKUI
2025-02-07 23:23:54 +03:00
parent b08d83d369
commit 830a2ca72e
2 changed files with 86 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
{
lib,
fetchFromGitHub,
stdenv,
cmake,
SDL2,
}:
stdenv.mkDerivation {
pname = "clunk";
version = "1.0-unstable-2020-06-25";
src = fetchFromGitHub {
owner = "stalkerg";
repo = "clunk";
rev = "6d4cbbe1b6f1e202b9945d20073952b254e8d530";
hash = "sha256-cz6v7rQYIoLf53Od7THmDPmBfhn8DBP7+uOIZRF0gc8=";
};
buildInputs = [ SDL2 ];
nativeBuildInputs = [ cmake ];
meta = {
description = "Clunk - real-time binaural sound generation library. Versions for Vangers game. Porting to SDL2 and fix some errors";
homepage = "https://github.com/stalkerg/clunk";
platforms = lib.platforms.all;
license = with lib.licenses; [ lgpl21Plus ];
maintainers = with lib.maintainers; [ _3JlOy-PYCCKUi ];
};
}
+55
View File
@@ -0,0 +1,55 @@
{
lib,
fetchFromGitHub,
callPackage,
stdenv,
cmake,
SDL2,
SDL2_net,
libogg,
libvorbis,
ffmpeg,
zlib,
}:
let
clunk = callPackage ./clunk.nix { };
in
stdenv.mkDerivation {
pname = "vangers";
version = "2.0-unstable-2024-09-30";
src = fetchFromGitHub {
owner = "KranX";
repo = "Vangers";
rev = "72145feed605856c6711bbbcb4f9db99db3434fd";
hash = "sha256-IhCQh60wBzaRsj72Y8NUHrv9lvss0fmgHjzrO/subOI=";
};
buildInputs = [
SDL2
SDL2_net
libogg
libvorbis
ffmpeg
clunk
zlib
];
nativeBuildInputs = [ cmake ];
installPhase = ''
mkdir -p $out/bin
install -T -m755 server/vangers_server $out/bin/vangers_server
install -T -m755 src/vangers $out/bin/vangers
install -T -m755 surmap/surmap $out/bin/surmap
'';
meta = {
description = "The video game that combines elements of the racing and role-playing genres";
homepage = "https://github.com/KranX/Vangers";
mainProgram = "vangers";
platforms = lib.platforms.all;
license = with lib.licenses; [ gpl3Only ];
maintainers = with lib.maintainers; [ _3JlOy-PYCCKUi ];
};
}