From 5c283e7aff199145dfb5d27fc88cd1e0be140cf2 Mon Sep 17 00:00:00 2001 From: Artturin Date: Tue, 1 Oct 2024 21:10:19 +0300 Subject: [PATCH] tt-gcc: Don't `leaveDotGit` Without `leaveDotGit` the fetcher uses `--depth 1` which reduces the size from ~7GB to 1.9GB --- pkgs/sfpi/tt-gcc.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/sfpi/tt-gcc.nix b/pkgs/sfpi/tt-gcc.nix index 87bd296..bb3a649 100644 --- a/pkgs/sfpi/tt-gcc.nix +++ b/pkgs/sfpi/tt-gcc.nix @@ -10,8 +10,8 @@ pkgs.stdenv.mkDerivation rec { rev = "94a51a7"; # this takes a while and we don't need all of them fetchSubmodules = true; - leaveDotGit = true; - hash = "sha256-VliX4Npw8FqTq3vmdsDFRThXFfDgaTomJ+egCEyhOyU="; + leaveDotGit = false; + hash = "sha256-+bD4GzQ1bSTDOm4Vqxr70uF6yWuIU1ZgZvuRLQO4Or0="; }; nativeBuildInputs = with pkgs; [ @@ -45,13 +45,14 @@ pkgs.stdenv.mkDerivation rec { "--prefix=${placeholder "out"}" ]; + postPatch = '' + substituteInPlace Makefile.in \ + --replace-fail 'flock `git' 'true' + ''; + hardeningDisable = [ "format" ]; enableParallelBuilding = true; - - # this is an absolute travesty, but i'm not about to - # properly repackage all of riscv-gnu-toolchain - __noChroot = true; }