Continuing to explore #nixos microvms for ephemeral environments tonight.

I wanted an old Perl script (a git wrapper) that I haven't touched in 14 years to run in a throw-away declarative VM. A few minutes to throw together a flake.nix that installs the script, bundles a suitable version of Perl, and... that's it. Include it in the VM definition and I'm all done.

Really seems like these tools are the perfect for the times.

(Also, props to #perl that this old script still Just Runs.)

@clarkema Yup, we take the whole back-compat thing seriously. If you want to write a script that'll still work in a decade or two, write it in Perl.

@leonerd @clarkema And I'll expand upon that with C bindings with it just work.

When it comes to python or note, both of those constantly struggle with figuring out how to talk to the compiler etc.