You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be feasible to write a tool that takes a nix expression to evaluate against a nix file, and produces an equivalent single-file (modulo importing from derivation outputs, which is icky) expression with no imports of fixed nix files?
So for example, I could evaluate pkgs.foo against nixpkgs, and would end up with a single file containing a giant let block full of definitions from different files (formatting and comments preserved as much as possible), along with comments explaining where each let definition came from. The resulting single-file expression should be possible to evaluate in isolation.
Weird, both the commit link and the top-level link suggest that #484 is the associated PR. Furthermore, as I was typing it, GitHub autocompleted #484 to say "Add nix-pack utility". But then the link is broken! GitHub is clearly haunted today...
Activity
edolstra commentedon Aug 26, 2015
See also https://github.com/NixOS/nix/tree/nix-pack which does a slightly different thing, namely pack all the files referenced from a file.
copumpkin commentedon Aug 26, 2015
Fun! Any idea why the PR associated with that seems to be 404'ing?
edolstra commentedon Aug 26, 2015
I don't think I ever created a PR for it...
copumpkin commentedon Aug 26, 2015
Weird, both the commit link and the top-level link suggest that #484 is the associated PR. Furthermore, as I was typing it, GitHub autocompleted #484 to say "Add nix-pack utility". But then the link is broken! GitHub is clearly haunted today...
armijnhemel commentedon Apr 30, 2017
@edolstra would it be possible to include it? It sounds like a useful utility to me.
stale commentedon Feb 15, 2021
I marked this as stale due to inactivity. → More info
stale commentedon May 1, 2022
I closed this issue due to inactivity. → More info
Merge pull request NixOS#620 from NixOS/document-survey
tomberek commentedon Aug 13, 2026
Closing as stale. Re-open if needed.
Merge pull request NixOS#620 from DeterminateSystems/fix-589