Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
75 lines
1.4 KiB
Nix
75 lines
1.4 KiB
Nix
{
|
|
alsa-lib,
|
|
cmake,
|
|
fetchFromGitHub,
|
|
glslang,
|
|
lib,
|
|
libX11,
|
|
libXcursor,
|
|
libglvnd,
|
|
makeWrapper,
|
|
ninja,
|
|
nix-update-script,
|
|
stdenv,
|
|
vulkan-headers,
|
|
vulkan-loader,
|
|
vulkan-validation-layers,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "opengothic";
|
|
version = "1.0.3010";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Try";
|
|
repo = "OpenGothic";
|
|
tag = "opengothic-v${finalAttrs.version}";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-ELDuyoAZmulMjFFctuCmdKDUMtrbVVndJxIf9Xo82N4=";
|
|
};
|
|
|
|
outputs = [
|
|
"dev"
|
|
"out"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
glslang
|
|
makeWrapper
|
|
ninja
|
|
];
|
|
|
|
buildInputs = [
|
|
alsa-lib
|
|
libX11
|
|
libXcursor
|
|
libglvnd
|
|
vulkan-headers
|
|
vulkan-loader
|
|
vulkan-validation-layers
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace-fail "-Werror" ""
|
|
'';
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/Gothic2Notr \
|
|
--set LD_PRELOAD "${lib.getLib alsa-lib}/lib/libasound.so.2"
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
extraArgs = [ "--version-regex=^opengothic-v(.*)$" ];
|
|
};
|
|
|
|
meta = {
|
|
description = "Open source re-implementation of Gothic 2: Night of the Raven";
|
|
homepage = "https://github.com/Try/OpenGothic";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ azahi ];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "Gothic2Notr";
|
|
};
|
|
})
|