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:
parent
f12b93162a
commit
47a7383395
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user