Unverified Commit 11d588f8 authored by jopejoe1's avatar jopejoe1 Committed by GitHub
Browse files

the-legend-of-edgar: 1.36-unstable-2023-07-11 -> 1.37 (#373578)

parents 7152ce5d 86758397
Loading
Loading
Loading
Loading
+14 −6
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  SDL2,
  SDL2_image,
  SDL2_mixer,
@@ -14,15 +15,24 @@

stdenv.mkDerivation (finalAttrs: {
  pname = "the-legend-of-edgar";
  version = "1.36-unstable-2023-07-11";
  version = "1.37";

  src = fetchFromGitHub {
    owner = "riksweeney";
    repo = "edgar";
    rev = "8344b385b65e8226455c7e88bd5aca57caa3c520";
    hash = "sha256-dOLKMsyQkVZ7gBiURfr/tFbu3xSqei8A/M2HSZgAFnI=";
    rev = finalAttrs.version;
    hash = "sha256-hhzDNnoQCwHOwknABTz4a9AQ7MkU9vayi2tZvJtK1PQ=";
  };

  patches = [
    # Fix _FORTIFY_SOURCE startup crash:
    #   https://github.com/riksweeney/edgar/pull/67
    (fetchpatch {
      url = "https://github.com/riksweeney/edgar/commit/cec80a04d765fd2f6563d1cf060ad5000f9efe0a.patch";
      hash = "sha256-RJpIt7M3c989nXkWRTY+dIUGqqttyTTGx8s5u/iTWX4=";
    })
  ];

  nativeBuildInputs = [
    pkg-config
    gettext
@@ -46,9 +56,7 @@ stdenv.mkDerivation (finalAttrs: {
    "BIN_DIR=${placeholder "out"}/bin/"
  ];

  hardeningDisable = [
    "fortify"
  ];
  enableParallelBuilding = true;

  meta = {
    homepage = "https://www.parallelrealities.co.uk/games/edgar";