4 ms·
It's probably no good to you, but one of the reasons I like NixOS is the simplicity of creating single file scripts including dependencies. For example, somethi
by Filligree 7y ago
It's probably no good to you, but one of the reasons I like NixOS is the simplicity of creating single file scripts including dependencies. For example, something using Pendulum and ffmpeg together would start like this:
#!/usr/bin/env nix-shell
#!nix-shell -i python -p python pythonPackages.pendulum ffmpeg
Then you just put the code after that.
- pizza 7y agoOK that's pretty cool
- pmahoney 7y agoI love Nix and NixOS personally... but it's been a tough sell at work, unfortunately. Even with simple shell scripts... it's so easy to invoke programs with GNU extensions and later find they fail on a co-workers macos machine. And I often have a shell.nix sitting right there that defines the complete dependency closure; very frustrating to not be able to use it.