tt-gcc: Don't leaveDotGit
Without `leaveDotGit` the fetcher uses `--depth 1` which reduces the size from ~7GB to 1.9GB
This commit is contained in:
parent
c298a369e0
commit
5c283e7aff
|
@ -10,8 +10,8 @@ pkgs.stdenv.mkDerivation rec {
|
||||||
rev = "94a51a7";
|
rev = "94a51a7";
|
||||||
# this takes a while and we don't need all of them
|
# this takes a while and we don't need all of them
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
leaveDotGit = true;
|
leaveDotGit = false;
|
||||||
hash = "sha256-VliX4Npw8FqTq3vmdsDFRThXFfDgaTomJ+egCEyhOyU=";
|
hash = "sha256-+bD4GzQ1bSTDOm4Vqxr70uF6yWuIU1ZgZvuRLQO4Or0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
|
@ -45,13 +45,14 @@ pkgs.stdenv.mkDerivation rec {
|
||||||
"--prefix=${placeholder "out"}"
|
"--prefix=${placeholder "out"}"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace Makefile.in \
|
||||||
|
--replace-fail 'flock `git' 'true'
|
||||||
|
'';
|
||||||
|
|
||||||
hardeningDisable = [
|
hardeningDisable = [
|
||||||
"format"
|
"format"
|
||||||
];
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
# this is an absolute travesty, but i'm not about to
|
|
||||||
# properly repackage all of riscv-gnu-toolchain
|
|
||||||
__noChroot = true;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue