diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2018-04-29 19:14:00 -0500 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2018-04-29 19:15:45 -0500 |
commit | 47a738339553e5416e9edb4c5bc71c3497911fb1 (patch) | |
tree | 1f2607c9199893e8077159eac1ab2c33dd9a07c5 /pkgs | |
parent | f12b93162a134cf9bfa4fcdaf10966922fbec6f7 (diff) | |
download | nixlib-47a738339553e5416e9edb4c5bc71c3497911fb1.tar nixlib-47a738339553e5416e9edb4c5bc71c3497911fb1.tar.gz nixlib-47a738339553e5416e9edb4c5bc71c3497911fb1.tar.bz2 nixlib-47a738339553e5416e9edb4c5bc71c3497911fb1.tar.lz nixlib-47a738339553e5416e9edb4c5bc71c3497911fb1.tar.xz nixlib-47a738339553e5416e9edb4c5bc71c3497911fb1.tar.zst nixlib-47a738339553e5416e9edb4c5bc71c3497911fb1.zip |
darling: fix src
Darling has a case conflict which means that its src hash will be different between case sensitive and case insensitive file systems. This is not ideal and the only way around it is basically to remove the offending files from the output. I use fetchzip here to do that but I hope there is a better fix available eventually.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/os-specific/darwin/darling/default.nix | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/pkgs/os-specific/darwin/darling/default.nix b/pkgs/os-specific/darwin/darling/default.nix index b9d806cded23..c1e29843147c 100644 --- a/pkgs/os-specific/darwin/darling/default.nix +++ b/pkgs/os-specific/darwin/darling/default.nix @@ -1,14 +1,19 @@ -{stdenv, lib, fetchFromGitHub, cmake, bison, flex}: +{stdenv, lib, fetchzip, cmake, bison, flex}: stdenv.mkDerivation rec { pname = "darling"; name = pname; - src = fetchFromGitHub { - repo = pname; - owner = "darlinghq"; - rev = "d2cc5fa748003aaa70ad4180fff0a9a85dc65e9b"; - sha256 = "1sdl0ysa3yfdvkq0x7vkdl64g7mcfy3qx70saf1d8rnhycbxjgjg"; + src = fetchzip { + url = "https://github.com/darlinghq/darling/archive/d2cc5fa748003aaa70ad4180fff0a9a85dc65e9b.tar.gz"; + sha256 = "11b51fw47nl505h63bgx5kqiyhf3glhp1q6jkpb6nqfislnzzkrf"; + postFetch = '' + # Get rid of case conflict + mkdir $out + cd $out + tar -xzf $downloadedFile --strip-components=1 + rm -r $out/src/libm + ''; }; # only packaging sandbox for now |