crystal_1_0, crystal_1_1: fix build

This commit is contained in:
K900 2022-08-02 00:34:28 +03:00
parent e8ce2f4a26
commit 357ae167e2

View file

@ -2,6 +2,7 @@
, callPackage
, fetchFromGitHub
, fetchurl
, fetchpatch
, lib
# Dependencies
, boehmgc
@ -97,6 +98,16 @@ let
inherit sha256;
};
patches = lib.optionals (lib.versionOlder version "1.2.0") [
# add support for DWARF5 debuginfo, fixes builds on recent compilers
# the PR is 8 commits from 2019, so just fetch the whole thing
# and hope it doesn't change
(fetchpatch {
url = "https://github.com/crystal-lang/crystal/pull/11399.patch";
sha256 = "sha256-CjNpkQQ2UREADmlyLUt7zbhjXf0rTjFhNbFYLwJKkc8=";
})
];
outputs = [ "out" "lib" "bin" ];
postPatch = ''