Open jian-lin opened 1 year ago
The closure size of racket-minimal in Nixpkgs is 772MB, while in Guix, it's only 256MB.
Nixpkgs:
/nix/store/gx7s27xmdyhn66975q9hymq0dqbx640c-libGL-1.6.0 520.0 37.6M /nix/store/mr4590j5gwg8p53rncr8pd1y8ap6x08m-getent-glibc-2.37-8 520.0 33.8M /nix/store/q7vpyclsq7dbiibmyp98ba8p7as8p5gf-dns-root-data-2019-01-11 4.4K 4.4K /nix/store/9dvq1hgk5fvrnjq4sd6w9m7m0zha70mf-libXdamage-1.1.5 18.1K 35.1M /nix/store/syxg9msfdwbz8h4ndinhsa1ziq3cqhsz-libXinerama-1.1.4 21.9K 35.2M /nix/store/sj74dfn1nx3br6gbrksdr41yvwfii34g-libXau-1.0.9 23.4K 31.1M /nix/store/df9c7n5hdx7ml0jrvrv7blmkygznpz81-libXcomposite-0.4.5 25.1K 35.1M /nix/store/qg3qxiaj261jhkkcvc7wjgphkykn33ck-libXdmcp-1.1.3 31.4K 31.1M /nix/store/7bs7p4pvvj65a1lkkvqbdwshnx8pnvly-libdaemon-0.14 36.9K 31.1M /nix/store/q2r07izn69ipnhkjdsnwz28p0rzfas0a-libXfixes-6.0.0 38.2K 35.1M /nix/store/zx8v56ga7hadl9hrnv4sj5rlrvqhjq13-keyutils-1.6.3-lib 41.5K 31.1M /nix/store/7q58h7q21h9zir3zzhrxxc7ba6bkpv01-libmnl-1.0.5 42.2K 31.1M /nix/store/c1g4n1jg5057mfnxvbxa5w2k5wqakqb0-libdatrie-2019-12-20-lib 42.2K 31.1M /nix/store/r06lkppz8w5v6vp37czy0xnyaj1hqwfy-npth-1.6 52.0K 32.7M /nix/store/ylwqkikzvl571iql3cj6ghqzis7d5kjp-libXrender-0.9.10 53.6K 35.1M /nix/store/aicch09ly6spvdma29srgq9nfw6y9pkw-libnfnetlink-1.0.2 55.2K 31.1M /nix/store/qzs91y7s4rwl7mihvh87h8zs29hzcs2i-libffi-3.4.4 55.2K 31.1M /nix/store/n32rla0prb7hi1ycrrhqks6i8b9zc35q-libXrandr-1.5.2 62.9K 35.3M /nix/store/h449fmwdwj5dx3qk45shzxpx7hx4iciq-libXcursor-1.2.0 68.4K 35.2M /nix/store/rnnrmrcsywlrml2yfbc4yazp92m7glxm-bzip2-1.0.8-bin 68.5K 31.2M /nix/store/7s66yqwdxc414j942p3hch88pp5b3wx2-libcap-2.69-lib 77.9K 31.2M /nix/store/a6vivcl5j98l3ccb046i623vah0x4zy8-attr-2.5.1 78.8K 31.2M /nix/store/32pb1677dhg0yz36zfyi4yfdycvyjhdq-bzip2-1.0.8 79.5K 31.2M /nix/store/y4bkflfiprrz1f7zkax1707rwqc7aj0x-libXi-1.8 84.4K 35.2M /nix/store/x250qmlrr39gb2lgdn34nbk2138d6yj6-pcsclite-1.9.5 87.8K 31.2M /nix/store/gvy6qzrbhbk5lyplz4dajmqxqmmf7714-tcb-1.2 88.8K 46.5M /nix/store/d4grvyvpnc1f1p2ypl3ayxqqykbi6dv2-libtasn1-4.19.0 91.7K 31.2M /nix/store/bnpy6ypmsi21gym32qj8yb26sbsmf8bq-libXext-1.3.4 94.2K 35.1M /nix/store/nfs7kcfxjjad2hl8i52jiwkacrf2sb6r-libassuan-2.5.5 97.3K 32.0M /nix/store/vza500i228agfnb4rpihh5nd1knxvmrr-acl-2.3.1 108.9K 31.3M /nix/store/75ygf3n1m3dmnnw9cidglic3d6ygvri2-libpsl-0.21.2 118.9K 31.4M /nix/store/cgxmicqj51758mbv0qz9y4ry31h4h2w8-kmod-30-lib 120.4K 40.7M /nix/store/w4lwvqgf0v5846ygqfq0zga54fvbrgpv-libXtst-1.2.3 121.8K 35.3M /nix/store/8h3m8xp2gd12k86rlxdjrwpw0awfw5gb-libcap-ng-0.8.3 124.3K 31.2M /nix/store/pf3si7nkxwdbg07q0m5zx9mkgzdp9g9y-libxcrypt-4.4.35 128.0K 31.2M /nix/store/s9zl0rv45yc3ymx61q6n97c3l7196pq4-zlib-1.2.13 129.6K 31.2M /nix/store/v51vdfbgvk3vq81l3z4s1mcynyfic171-libseccomp-2.5.4-lib 138.9K 31.2M /nix/store/1hgk46w2n5fkw9n5b2z1wlx7swfahwg9-xgcc-12.3.0-libgcc 139.1K 139.1K /nix/store/d4wb4vw0i85xyy7qs82l4s4mr2yigvc9-gcc-12.3.0-libgcc 139.1K 139.1K /nix/store/wscx1kqy11yrl1rf6ghp1yi2rf04xisp-libXft-2.3.6 148.2K 42.4M /nix/store/gqa04d6hmzp3iirfkhly3ssdarfj2zc3-gzip-1.12 153.1K 32.8M /nix/store/fqpv3cfj1ympc7ah4vm0jwzn34a98y96-fribidi-1.0.13 154.3K 31.2M /nix/store/ncpmwy10fdzjq7g8x7xhj0hv0b5wfydd-libmicrohttpd-0.9.71 159.4K 50.6M /nix/store/53bh0jh0q1b50mm46gx5w9nkdia7y0wf-libcbor-unstable-2023-01-29 161.7K 31.3M /nix/store/dg9h4d3xw6ppmkranywi2845jxj9c71s-xz-5.4.3-bin 174.5K 32.0M /nix/store/82l3h9kjn1zna08imm0nwm7l1izcynj2-libnetfilter_conntrack-1.0.9 191.6K 31.4M /nix/store/sbj4jbm1svdlssfybwnhw5z2k1864dif-kmod-30 206.2K 40.8M /nix/store/ahvs67b4f72kdr33p1cngz6gsbkkcjab-graphite2-1.3.14 219.2K 39.0M /nix/store/r2j7iy2rnba5h37fwxpws6dnkflr6i1w-json-c-0.16 219.6K 31.3M /nix/store/l6pmvf3d45k0y45m2hiv7sfxvwf77m95-nghttp2-1.51.0-lib 220.9K 31.3M /nix/store/ca7bdv2jdqflpg9vqbz6gpclh6cwmk4m-lz4-1.9.4 231.5K 31.3M /nix/store/71l0943lpvdrd580rhcg34p2nz4d1yqn-kexec-tools-2.0.26 237.0K 31.5M /nix/store/sid1pjrcvrf5g1c7ff84b4l6din88ark-publicsuffix-list-unstable-2023-02-16 245.3K 245.3K /nix/store/l6x7jz2qkriwf1ms80cpln0kfnly75y5-libpng-apng-1.6.39 249.3K 31.5M /nix/store/glk21f0vr9lfjjmw6qh0rky9haslhijr-expat-2.5.0 253.0K 31.3M /nix/store/mw8j5ncxlgfq3sj0zzsdxq5ycvvamjbg-libedit-20221030-3.1 282.6K 34.9M /nix/store/p7njqfc1l00hxvm5zvjshahxqca5k9vm-dconf-0.40.0-lib 299.7K 49.9M /nix/store/wldwl0c1x2lfhd6s8l82ily6wd5j60qb-libnftnl-1.2.5 300.5K 31.4M /nix/store/xr0rc6y719iyks4lq5xba0g2inqng1zy-libssh2-1.11.0 309.7K 37.7M /nix/store/fbiggz755ajhjpv615fgnr64imjghbsh-nspr-4.35 337.8K 31.4M /nix/store/24q97dx4kdkpcqchn1crm1845jj10rmq-zstd-1.5.5-bin 343.7K 44.5M /nix/store/44x4pk1d6q8gixdn03j2pmbjbspff296-libidn2-2.3.4 350.4K 2.1M /nix/store/i56iy2wh77lvsz4r7d3fi7gybf72qg3r-wayland-1.22.0 385.6K 31.5M /nix/store/gxwsa0w5f8krfgwfk9axn58hpa6pbiy2-fontconfig-2.14.2-lib 389.7K 38.2M /nix/store/rhgnd19svycj2mda64q9yn32r6qjdkgz-libdeflate-1.18 391.9K 31.5M /nix/store/xr4ms7hais72qx2lx6mc2xa0w8gf2m78-lvm2-2.03.21-lib 408.3K 97.5M /nix/store/nbhykjdirn8yfkizmsw9fvzf0vh7j1dn-libapparmor-3.1.4 440.8K 31.5M /nix/store/h2ss9brcgmnc35dg80slsvbrvqcm3dd1-lcms2-2.15 445.2K 31.5M /nix/store/204j1yqxw4iin087p53x9jg5pa02yr65-dbus-1.14.8-lib 449.6K 101.5M /nix/store/h2ws458h5gwavr8bygklc3kyrkfayf30-readline-8.2p1 459.3K 35.1M /nix/store/y0s3gq4slglcpy68yb7wyxbyflmsaz9h-glu-9.0.2 462.6K 45.8M /nix/store/cg0f1vdqgfx78n8rn60bzrbl2lhvh5y8-pcre-8.45 513.3K 31.6M /nix/store/7p0m3l0k6w1h1x9z7lj2sy0yanfsglnc-libxkbcommon-1.5.0 553.6K 43.4M /nix/store/siq4zkpmxvkzfvjsp4lr5rk7pk576hzf-libtiff-4.5.0 597.5K 42.2M /nix/store/fl6vl05f0as42d241c0iy49by75ac5zi-json-glib-1.6.6 604.0K 50.2M /nix/store/5d6j8zx2s9qdb03fm1j4qrmib3pgsvhj-libthai-0.1.29 627.1K 31.7M /nix/store/rbsx8rfk9kv7x17np4a0kb2b6lyr69dk-nettle-3.9.1 697.8K 40.2M /nix/store/g78ycfn68n2mmf76yfczdrrqnziy8ksl-gmp-with-cxx-6.2.1 729.2K 39.5M /nix/store/fqrbxmsp3p0fn9icbh20nwnyq7xqrb0y-gmp-with-cxx-6.2.1 730.4K 39.5M /nix/store/ih1lp7zs2shysnj0vvqhwm3d326q7cx4-dejavu-fonts-minimal-2.37 742.6K 742.6K /nix/store/887ah57n3qswyzpp9xw1rp1f34ic6iij-mpfr-4.2.0 774.0K 40.2M /nix/store/rsb5c85xwscxzard8axyvbih6f983gi5-xz-5.4.3 781.5K 31.9M /nix/store/m7i0mj1ng64ddnkqahpbjfjfg6qkk9cv-audit-3.1.1 785.9K 33.5M /nix/store/wz1dy3d3064wbrvs7wcf9d7jr4f02073-pixman-0.42.2 787.2K 31.9M /nix/store/fn3k787ly5hi0ak66w3zql86mlcsj07l-libgpg-error-1.47 815.0K 31.9M /nix/store/cak8yw2svq9p0dn869pklvlzrbnq357x-curl-8.1.1 837.4K 53.1M /nix/store/i4mwwpgwfihb14nkd99dcqx6s2i8kaxw-libevent-2.1.12 841.5K 31.9M /nix/store/ah4s45l5n1mgmcvxph6l7bp4rv3azkdq-pango-1.50.14 847.1K 78.2M /nix/store/7ws5zmh4llmml550x02pqpcyzv5j4m4c-gnugrep-3.11 923.1K 33.8M /nix/store/y8clqrrm47j3vw2z9vy5ryqsrhad1imp-libfido2-1.13.0 981.3K 104.5M /nix/store/60zh9n7zj2lxd0i8lq69fnnlvhb55832-unbound-1.17.1-lib 1.0M 42.0M /nix/store/1334msr6whbnraxs69mc03iv4655gxb2-libselinux-3.3 1.1M 32.7M /nix/store/d9s241xhxhxr0ncixhq8kj9iw79rg56b-gnupg-2.4.0 1.1M 36.1M /nix/store/m65kpc27s8b7nyg3pwzmp489d5la9yp6-libpcap-1.10.4 1.1M 35.2M /nix/store/wcycj7mjx18d1d9iyzik16fag9pzcznc-zstd-1.5.5 1.1M 39.9M /nix/store/yadji3div1xi7sq9rxrvm0msk9gxvqzr-libsoup-3.4.2 1.1M 54.4M /nix/store/jda0x3vwzvlvkh6bgrnppdbkh1c2x1h7-libsoup-2.74.3 1.2M 55.8M /nix/store/99kyqdivq646j0w4smh2bfqd2pkrcrai-libxcb-1.14 1.3M 32.5M /nix/store/02dr9ymdqpkb75vf0v1z2l91z2q3izy9-coreutils-9.3 1.4M 41.1M /nix/store/227f9hlnd044vn491fs1i1cbkx8sfn7v-libgcrypt-1.10.2 1.4M 33.3M /nix/store/74scakrdnspm6af5wgbbw8650wbigap6-openjpeg-2.5.0 1.4M 44.3M /nix/store/wlb0hlks3j9vlqy2ph6s2jrlzmh0ikgr-libnl-3.7.0 1.4M 32.5M /nix/store/wx5f74rwx4xb9rg416im6w3w8qxgk78z-sqlite-3.42.0 1.4M 32.6M /nix/store/lz5r68apazpkvnqpy7007485gr6l1dr8-libxml2-2.10.4 1.5M 32.7M /nix/store/sv75a4j7jkxjrdarkxf938x92l5qdaan-avahi-0.8 1.5M 119.0M /nix/store/6xzx5hni7r0sl363ybz27dw4ddv43arb-fontconfig-2.14.2 1.6M 2.3M /nix/store/b4xcs9rdnlizcjvh9x25x7x7ysm4n7wg-libjpeg-turbo-2.1.5.1 1.6M 32.7M /nix/store/mh1c3p23xby3chc3q0c0g78fa1nn65yw-bash-5.2-p15 1.6M 32.7M /nix/store/7d6wz570fp2h4k5i65hvr6154m7m55y8-libbpf-1.2.0 1.7M 59.2M /nix/store/gxx0r925z1rsfjqhq1l83pk3aszfkd11-brotli-1.0.9-lib 1.7M 32.8M /nix/store/k1l5zphml8fpi350jii4c10rrlhyvscy-libepoxy-1.5.10 1.7M 39.4M /nix/store/z6ksx2135g10zh6c45m3rl8fg99n81nk-gobject-introspection-1.76.1 1.7M 67.5M /nix/store/0cp8ksa1sb67zcidfblrck0bd84qzwlf-pcre2-10.42 1.8M 32.9M /nix/store/381s0sghqfdxx2fnx02xqgrkrg6dclnr-linux-pam-1.5.2 1.8M 46.5M /nix/store/bfb2b8flqm6y60s96s6wk4v5b9j4b595-cairo-1.16.0 1.8M 65.8M /nix/store/w5w0w4apy89wajsvik06p0xwb4zbzrbw-util-linux-minimal-2.39-lib 1.8M 32.9M /nix/store/ylm9xzdbznl6ymqwzy6i7f89ig323ilm-libunistring-1.1 1.8M 1.8M /nix/store/gkh0lkj9wmlkhbkkpf8fp7zjf1521pyl-freetype-2.13.0 2.0M 35.2M /nix/store/bx9i3hq5lywpw15maixvk5qhsbdrkfag-at-spi2-core-2.48.3 2.1M 201.3M /nix/store/k3xam7hvravqdc6qrr3w4m6vh0q507kv-cryptsetup-2.6.1 2.1M 106.0M /nix/store/1lp76l54hjr466dk539qrpxyzjv07b0r-libkrb5-1.20.1 2.2M 35.0M /nix/store/np8qiak9f1p9hg3m9a8d5lc6f9jw6z4r-tpm2-tss-3.2.0 2.5M 55.8M /nix/store/sh7r7lkkdyrq46kq5y7nwi9c139mmwcz-libglvnd-1.6.0 2.5M 37.6M /nix/store/16n59d82lzifl6bmydjl63q1w1gsz616-kbd-2.5.1 2.6M 50.6M /nix/store/1i0bd768frp0s9pwfcf5qqrjfk36fa7x-iptables-1.8.9 2.6M 38.4M /nix/store/nwym4ys464vziikfjwmc9ngamcfaygvm-libX11-1.8.4 2.6M 35.0M /nix/store/0pfxmlqg9zbmzlfh3s2a08scr92wznfn-glibc-2.37-8-bin 2.7M 33.8M /nix/store/9rxm4yi7blwl4pwpklfibznl86gfn7h7-harfbuzz-7.3.0 2.7M 64.2M /nix/store/ifq0va0bw4yn7p9ysd48q9a2g9lh39ms-gnutar-1.34 2.8M 34.0M /nix/store/y306322qv2dh5qrb5f3hgj9rmdpkzxb4-gdk-pixbuf-2.42.10 2.8M 63.6M /nix/store/8gyspdnmixflq9yz40qakx99g0p61dlh-gnutls-3.8.0 3.1M 50.5M /nix/store/l3q0p387arx1lka7ygqjdy3nibm2x8jr-db-4.8.30 3.4M 42.2M /nix/store/948365qwrzdm33wr80s8qx0qf0yvdb6i-elfutils-0.189 3.5M 57.4M /nix/store/js2x4ms31sdgjf0w7icv10ddhc0z3acw-ncurses-6.4 3.5M 34.6M /nix/store/zhja0pvyj1xr5gqlf4qfsj2qnwjgb8r7-p11-kit-0.24.1 3.5M 36.3M /nix/store/3pb6zaaa60jm1asgzn3l6x2iyzdvs1fr-nss-3.79.4 3.7M 49.6M /nix/store/9hbsrf8v53siyq2l98l7lrh29ffq94qj-tracker-3.5.1 4.2M 125.3M /nix/store/bx5qbszgqlpvynimjnz9nb9kfpkglvvk-shadow-4.13 4.3M 53.5M /nix/store/zdy9s4i7q49gl5piv5a7wdi0cs8z7ll7-cups-2.4.3-lib 4.6M 132.7M /nix/store/pn2y259lpyr96hjw70wxdjbx3yi7pkl3-poppler-glib-23.02.0 4.7M 117.3M /nix/store/c8dzbifxikzdbfnibjz8bx914skslx4g-gsettings-desktop-schemas-44.0 5.0M 5.0M /nix/store/dsrzdvab2kl6n4nl3kvwjqvm72r1yh7y-xkeyboard-config-2.33 5.7M 5.7M /nix/store/ii5lq0igwk9xpq16s98yqswsgr1dbfi2-openssl-3.0.9 6.2M 37.3M /nix/store/m4ys443sga47gd281pi428f5a42f10h8-gcc-7.5.0-lib 6.6M 37.7M /nix/store/7xhrcm6a01qri8z2wa4lxzkpc2wfnagm-bash-interactive-5.2-p15 6.9M 42.0M /nix/store/lz73kn62ikbii0711g8m21siiflrifyj-util-linux-minimal-2.39-bin 7.3M 62.8M /nix/store/75622q2wranjp6zl81ldq5j54s788dqz-gcc-12.3.0-lib 7.5M 38.8M /nix/store/lisv3xjdm5zmbfxhh50b8kz9dqrqmkkv-systemd-minimal-253.5 12.4M 97.1M /nix/store/svj1kqligz1zprj4l9zyz6k1imv5ndsi-poppler-data-0.4.12 12.4M 12.4M /nix/store/cgmbz0wglid7v5m0m0a70ksvgyxppsgn-glib-2.76.3 13.2M 49.6M /nix/store/l34qzi092rw2f0yb19slq0vsr8nlr844-iso-codes-4.11.0 18.4M 18.4M /nix/store/ic1b6irr41brvwxaiidq682gppfqrvph-librsvg-2.55.1 24.2M 110.0M /nix/store/wpgrc564ys39vbyv0m50qxmq8dvhi7cc-glibc-2.37-8 28.8M 31.1M /nix/store/9adpz6y8s4mgkxfhc9rzy25r7f3wdyll-systemd-253.5 31.4M 174.4M /nix/store/zw74yn8wwlycd4cb7iwjls3m39qpsmxi-gtk+3-3.24.38 37.3M 341.9M /nix/store/lxq431yj1d8vwvq9b3z7g8rwbdplm3km-icu4c-73.1 37.6M 78.0M /nix/store/d19d5yxfn3s7ffq9fxm6d66wy5dbrbys-racket-minimal-8.9 161.1M 772.3M /nix/store/zbaycxgvv3iaa18p889dagcfhinasvcx-glibc-locales-2.37-8 214.0M 214.0M
Guix
store item total self /gnu/store/f0j2vd8jzfqw9wkchf1aq3288d6w6b3m-racket-vm-cs-8.8 242.0 160.0 62.5% /gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35 40.6 38.8 15.1% /gnu/store/930nwsiysdvy2x5zv1sf6v7ym75z8ayk-gcc-11.3.0-lib 75.3 34.7 13.6% /gnu/store/69wd3pd1hd3j84xr965jj2fk2qmxn0hl-openssl-3.0.8 83.4 8.1 3.2% /gnu/store/bcc053jvsbspdjr17gnnd9dg85b3a0gy-ncurses-6.2.20210619 81.2 5.9 2.3% /gnu/store/4jakqiibsvrkv4jdw1wyl6racrwv9bkh-sqlite-3.39.3 86.0 3.4 1.3% /gnu/store/zzyywykw7kriln18rxqd82f0k5kidla7-bash-static-5.1.16 1.8 1.8 0.7% /gnu/store/lxfc2a05ysi7vlaq0m3w5wsfsy0drdlw-readline-8.1.2 82.6 1.4 0.6% /gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16 41.6 1.0 0.4% /gnu/store/1j0jq03930q4c7570145vjiaa8pnajz4-lz4-1.9.3 75.9 0.6 0.2% /gnu/store/slzq3zqwj75lbrg4ly51hfhbv2vhryv5-zlib-1.2.13 75.5 0.2 0.1% /gnu/store/wwj1idg2kdji7wwiyh4naqzkd4k8vg07-racket-minimal-8.8 256.0 0.0 0.0% /gnu/store/s5xidhig577ykz8f5zjsd6mzrwjbqqhb-racket-pkg-base-sources 0.0 0.0 0.0% total: 256.0 MiB
Steps to reproduce the behavior:
nix path-info -rSsh (nix build nixpkgs#racket-minimal --print-out-paths --no-link) | sort -hk2
guix size racket-minimal
Like Guix, racket-minimal should not have some packages, such as gtk, in its closure.
@henrytill @vrthra @marsam @wegank @siraben
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
nix-shell -p nix-info --run "nix-info -m"
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m" - system: `"x86_64-linux"` - host os: `Linux 6.1.35, NixOS, 23.11 (Tapir), 23.11.20230802.eeae76d` - multi-user?: `yes` - sandbox: `yes` - version: `nix-env (Nix) 2.15.1` - nixpkgs: `github:NixOS/nixpkgs/3ae20aa58a6c0d1ca95c9b11f59a2d12eebc511f`
I wrote in https://github.com/NixOS/nixpkgs/issues/209660#issuecomment-1621942022 with some details about how our Racket packaging works in Guix.
Describe the bug
The closure size of racket-minimal in Nixpkgs is 772MB, while in Guix, it's only 256MB.
Nixpkgs:
Guix
Steps To Reproduce
Steps to reproduce the behavior:
nix path-info -rSsh (nix build nixpkgs#racket-minimal --print-out-paths --no-link) | sort -hk2
on nixguix size racket-minimal
on guixExpected behavior
Like Guix, racket-minimal should not have some packages, such as gtk, in its closure.
Notify maintainers
@henrytill @vrthra @marsam @wegank @siraben
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.