fractal: save memory by building without debug symbols

The debug symbols are stripped afterwards anyways, and linking with them requires extra memory

Yureka 1a27fc7e a5695431

+18
+12
pkgs/by-name/fr/fractal/disable-debug.patch
··· 1 + diff --git a/Cargo.toml b/Cargo.toml 2 + index d614a94..674f2d6 100644 3 + --- a/Cargo.toml 4 + +++ b/Cargo.toml 5 + @@ -7,7 +7,6 @@ rust-version = "1.82" 6 + publish = false 7 + 8 + [profile.release] 9 + -debug = true 10 + lto = "thin" 11 + codegen-units = 1 12 +
+6
pkgs/by-name/fr/fractal/package.nix
··· 45 45 hash = "sha256-e3IW8D4aLU6d36ErUHDUDiXF1lN4HCn5OCX6GwaT3iQ="; 46 46 }; 47 47 48 + patches = [ 49 + # Disable debug symbols in release builds 50 + # The debug symbols are stripped afterwards anyways, and building with them requires extra memory 51 + ./disable-debug.patch 52 + ]; 53 + 48 54 # Dirty approach to add patches after cargoSetupPostUnpackHook 49 55 # We should eventually use a cargo vendor patch hook instead 50 56 preConfigure = ''