bstone: fix dependencies & modernize (#525084)
This commit is contained in:
@@ -6,12 +6,16 @@
|
||||
makeWrapper,
|
||||
sdl2-compat,
|
||||
vulkan-loader,
|
||||
openal,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "bstone";
|
||||
version = "1.3.4";
|
||||
|
||||
__structuredAttrs = true;
|
||||
strictDeps = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bibendovsky";
|
||||
repo = "bstone";
|
||||
@@ -26,7 +30,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
buildInputs = [
|
||||
sdl2-compat
|
||||
vulkan-loader
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
@@ -35,12 +38,17 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
mv $out/*.txt $out/share/bibendovsky/bstone
|
||||
|
||||
wrapProgram $out/bin/bstone \
|
||||
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ vulkan-loader ]}
|
||||
--prefix LD_LIBRARY_PATH : ${
|
||||
lib.makeLibraryPath [
|
||||
openal
|
||||
vulkan-loader
|
||||
]
|
||||
}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Unofficial source port for the Blake Stone series";
|
||||
homepage = "https://github.com/bibendovsky/bstone";
|
||||
homepage = "https://bibendovsky.github.io/bstone";
|
||||
changelog = "https://github.com/bibendovsky/bstone/blob/${finalAttrs.src.rev}/CHANGELOG.md";
|
||||
license = with lib.licenses; [
|
||||
gpl2Plus # Original game source code
|
||||
|
||||
Reference in New Issue
Block a user