Unverified Commit 8c2883e1 authored by Azat Bahawi's avatar Azat Bahawi Committed by GitHub
Browse files

opengothic: 0.80-unstable-09-10-2024 -> 1.0.3010 (#375179)

parents 3c7ee26e 9137365b
Loading
Loading
Loading
Loading
+15 −5
Original line number Diff line number Diff line
@@ -9,21 +9,22 @@
  libglvnd,
  makeWrapper,
  ninja,
  nix-update-script,
  stdenv,
  vulkan-headers,
  vulkan-loader,
  vulkan-validation-layers,
}:
stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
  pname = "opengothic";
  version = "0.80-unstable-09-10-2024";
  version = "1.0.3010";

  src = fetchFromGitHub {
    owner = "Try";
    repo = "OpenGothic";
    rev = "0db60b0a956e2a2f365aa3a8bdbe366be198e641";
    tag = "opengothic-v${finalAttrs.version}";
    fetchSubmodules = true;
    hash = "sha256-Hf3B7B4CaW/GsTcYs0PChpPfA9aK41pPJkImtUDgoKc=";
    hash = "sha256-ELDuyoAZmulMjFFctuCmdKDUMtrbVVndJxIf9Xo82N4=";
  };

  outputs = [
@@ -48,11 +49,20 @@ stdenv.mkDerivation {
    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";
@@ -61,4 +71,4 @@ stdenv.mkDerivation {
    platforms = lib.platforms.linux;
    mainProgram = "Gothic2Notr";
  };
}
})