|
|
|
|
|
by Filligree
2585 days 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. |
|
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.