crystal_1_0, crystal_1_1: fix build
This commit is contained in:
parent
e8ce2f4a26
commit
357ae167e2
1 changed files with 11 additions and 0 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue