Anyone with experience using NixOS to create a Lemmy instance, please share any caveats and troubleshooting tips you have.

  • @[email protected]
    link
    fedilink
    English
    12 years ago

    While we were talking I updated lemmy-server using overrideAttrs for my own use. It’s honestly not that hard. You change the commit, specify some random incorrect hashes, build it, nix screams at you that the hash is incorrect (and generously provides the correct one), put the correct hash, and build again. Done.

    • @ericjmoreyOP
      link
      English
      12 years ago

      That kinda defeats the purpose of the hash.

      • @[email protected]
        link
        fedilink
        English
        3
        edit-2
        2 years ago

        The hash isn’t there for security, it’s to make sure the code you’re building against doesn’t randomly change which could make the derivation fail to compile. For example, for the source, you can specify a literal HTTP download from a URL, and that file could be changed by the host at any given time, so it’s there as a safeguard.

        • @ericjmoreyOP
          link
          English
          12 years ago

          Thanks for all of this information. Reading through documentation gives information on how to do things when everything is working perfectly. It’s a large leap for a newcomer to handle the imperfect case.