Open CyberShadow opened 4 months ago
{ lib, writeText, stdenv, ldc }: stdenv.mkDerivation { name = "ldc-test"; src = writeText "test.d" '' module test; import std.stdio; void main() { writeln("Hello, world!"); } ''; dontUnpack = true; buildInputs = [ ldc ]; buildPhase = '' ldc2 -of=test $src ''; installPhase = '' mkdir -p $out/bin mv test $out/bin ''; }
Building and getting the closure size gives us a number around 1.3 GiB:
$ nix --extra-experimental-features nix-command path-info -S $(nix-build --no-out-link -E '(import <nixpkgs> {}).callPackage ./package.nix {}') /nix/store/fqlm6ailjq09shqrgrbhf4ll391n5mx8-ldc-test 1395772728
Graph:
It looks like there are some things there which might not need to be there, such as:
CC @ThomasMader @lionello @jtbx
"x86_64-linux"
Linux 6.6.34, NixOS, 24.11 (Vicuna), 24.11pre641786.d603719ec6e2
yes
nix-env (Nix) 2.18.2
/nix/store/ksj02zhy7qc4dmqi8g2ga8p9hj5173dv-nixpkgs-patched
Add a :+1: reaction to issues you find important.
Also see https://github.com/NixOS/nixpkgs/issues/111475 "dmd keeps references to boostrap compiler" and PR #111525 which had fixes for dmd
dmd
Describe the bug
Building and getting the closure size gives us a number around 1.3 GiB:
Graph:
It looks like there are some things there which might not need to be there, such as:
Notify maintainers
CC @ThomasMader @lionello @jtbx
Metadata
"x86_64-linux"
Linux 6.6.34, NixOS, 24.11 (Vicuna), 24.11pre641786.d603719ec6e2
yes
yes
nix-env (Nix) 2.18.2
/nix/store/ksj02zhy7qc4dmqi8g2ga8p9hj5173dv-nixpkgs-patched
Add a :+1: reaction to issues you find important.