mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 18:27:34 +00:00
crystal_1_0, crystal_1_1: fix build
This commit is contained in:
parent
e8ce2f4a26
commit
357ae167e2
@ -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 New Issue
Block a user