git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commit47a738339553e5416e9edb4c5bc71c3497911fb1 authorMatthew Bauer <mjbauer95@gmail.com> dateSun 29 Apr 2018, 19:14 (9 years ago) parentf12b931
1 file changed+11−6
pkgs/os-specific/darwin/darling/default.nix+11−6
pkgs/os-specific/darwin/darling/default.nix+11−6
@@ -1,14 +1,19 @@
1−{stdenv, lib, fetchFromGitHub, cmake, bison, flex}:
1+{stdenv, lib, fetchzip, cmake, bison, flex}:
22
33stdenv.mkDerivation rec {
44 pname = "darling";
55 name = pname;
66
7− src = fetchFromGitHub {
8− repo = pname;
9− owner = "darlinghq";
10− rev = "d2cc5fa748003aaa70ad4180fff0a9a85dc65e9b";
11− sha256 = "1sdl0ysa3yfdvkq0x7vkdl64g7mcfy3qx70saf1d8rnhycbxjgjg";
7+ src = fetchzip {
8+ url = "https://github.com/darlinghq/darling/archive/d2cc5fa748003aaa70ad4180fff0a9a85dc65e9b.tar.gz";
9+ sha256 = "11b51fw47nl505h63bgx5kqiyhf3glhp1q6jkpb6nqfislnzzkrf";
10+ postFetch = ''
11+ # Get rid of case conflict
12+ mkdir $out
13+ cd $out
14+ tar -xzf $downloadedFile --strip-components=1
15+ rm -r $out/src/libm
16+ '';
1217 };
1318
1419 # only packaging sandbox for now