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.
This commit is contained in:
Matthew Bauer 2018-04-29 19:14:00 -05:00
parent f12b93162a
commit 47a7383395

View File

@ -1,14 +1,19 @@
{stdenv, lib, fetchFromGitHub, cmake, bison, flex}: {stdenv, lib, fetchzip, cmake, bison, flex}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "darling"; pname = "darling";
name = pname; name = pname;
src = fetchFromGitHub { src = fetchzip {
repo = pname; url = "https://github.com/darlinghq/darling/archive/d2cc5fa748003aaa70ad4180fff0a9a85dc65e9b.tar.gz";
owner = "darlinghq"; sha256 = "11b51fw47nl505h63bgx5kqiyhf3glhp1q6jkpb6nqfislnzzkrf";
rev = "d2cc5fa748003aaa70ad4180fff0a9a85dc65e9b"; postFetch = ''
sha256 = "1sdl0ysa3yfdvkq0x7vkdl64g7mcfy3qx70saf1d8rnhycbxjgjg"; # 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 # only packaging sandbox for now