• TrickDacy@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    7 hours ago

    You can just nix-shell -p <obscure cli tool> and it’s just magically there in a new temporary shell, and then cleaned up once you quit that shell.

    🤯❤️

    • fizzle@quokk.au
      link
      fedilink
      English
      arrow-up
      2
      ·
      7 hours ago

      Yeah so “cleaned up” wasn’t completely true.

      Nix basically works by installing packages in a store or cache, and then soft linking to the binaries in the cache.

      When you exit the temporary shell, the link will no longer exist but the cached package and its dependencies are still there.

      You can easily clear that cache but it’s not gone instantly when you exit the shell.

      • TrickDacy@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        5 hours ago

        That’s actually what I figured/hoped. As long as they’re making an effort to keep that secure, sounds like a good approach to me!