| 1 Aug 2025 |
| _low_ changed their display name from low to _low_. | 21:06:04 |
| 2 Aug 2025 |
magic_rb | is there a way to get a more minimal haskell bin out of nixpkgs? basic things end up being 3GB in closure size because they pull in GHC through primitive. I've yet to try static builds but that takes ages so isnt really scalable | 10:37:25 |
maralorn | @magic_rb:matrix.redalder.org: Have a look at justStaticExecutables in the nixpkgs manual. | 11:17:00 |
magic_rb | thanks | 11:18:12 |
maralorn | Even nicer but minimally more complicated ist enableSeparateBinOutput. | 11:19:16 |
magic_rb | oh my so much better | 11:21:32 |
magic_rb | 3GB to 64MB | 11:21:36 |
magic_rb | thanks a lot | 11:21:37 |
magic_rb | nice, enableSeparateBinOutput also just works | 11:22:47 |
magic_rb | this makes haskell acceptable for the usecase i wanted. (reimplementing environment.etc and i dont feel like doing it with a shell script, rather gonna write a haskell binary) | 11:23:20 |
emily | In reply to @magic_rb:matrix.redalder.org this makes haskell acceptable for the usecase i wanted. (reimplementing environment.etc and i dont feel like doing it with a shell script, rather gonna write a haskell binary) you know about system.etc.overlay right? | 11:25:11 |
magic_rb | this is not for nixos | 11:25:18 |
magic_rb | rather nixng, i need environment.etc for nixos compatibility reasons | 11:25:35 |
emily | yeah I just mean | 11:25:44 |
emily | you should just crib that implementation | 11:25:51 |
emily | it's much better than the Perl nonsense | 11:25:59 |
emily | and pretty generic | 11:26:06 |
magic_rb | overlays dont work in containers | 11:26:07 |
magic_rb | so its not useful | 11:26:12 |
emily | they should in a mount namespace? | 11:26:22 |
magic_rb | if you docker run it wont | 11:26:35 |
magic_rb | im pretty sure | 11:26:43 |
magic_rb | (and anyway, i wanna write my own for fun and profit) | 11:27:01 |
emily | I think they should if you give the container a userns which you should probably do for isolation anyway l | 11:27:24 |
emily | but sure :) | 11:27:27 |
magic_rb | my goal with this is starting with replacing much of the shell script non sense in nixng with small haskell binaries | 11:28:11 |
magic_rb | been planning to do that for a while | 11:28:17 |
magic_rb | with UPX on top, it goes from 3.6MB to 700KB | 11:29:53 |
magic_rb | nice | 11:29:54 |
magic_rb | we shold have a UPX post build hook thing | 11:30:16 |