Unverified Commit 6d6092fe authored by Vladimír Čunát's avatar Vladimír Čunát Committed by GitHub
Browse files

premake5: Apply patch to fix filtering with alias values (#494797)

parents 35f7980d 37504fb9
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,

  # build inputs
  cacert,
@@ -29,7 +30,16 @@ stdenv.mkDerivation (finalAttrs: {
    readline
  ];

  patches = [ ./no-curl-ca.patch ];
  patches = [
    # https://github.com/premake/premake-core/issues/2614
    (fetchpatch {
      name = "0001-premake5-Fix-filters-using-alias-value.patch";
      url = "https://github.com/premake/premake-core/commit/d01097bb38da6855beeef7158b8b04ab1e63249b.patch";
      hash = "sha256-ZGhNUoXZbbW9ioFnAgPwypYhepoChtWF1SOCxs1WLj8=";
    })

    ./no-curl-ca.patch
  ];
  postPatch = ''
    substituteInPlace contrib/curl/premake5.lua \
      --replace-fail "ca = nil" "ca = '${cacert}/etc/ssl/certs/ca-bundle.crt'"