Three Years of Nix and NixOS: The Good, the Bad, and the Ugly - eviltoast
  • msherburn33@lemmy.ml
    link
    fedilink
    arrow-up
    5
    ·
    4 months ago

    Where are the source packages?

    It’s reproducible, so random updates are a no-no. You can however just dump the Git URL in your flake.nix inputs and then override the src of the package with that. The source gets updated when you do nix flake update next time. Something like this:

    inputs {
        ...
        mypackage_src.url = "github:myorg/mypackage";
        mypackage_src.flake = false;
        ...
    }
    
    pkgs.mypackage.overrideAttrs (oldAttrs: {
                  src = mypackage_src;
                  version = "nightly-${mypackage_src.shortRev or "src"}";
                })
    
    
    • treyf711
      link
      fedilink
      arrow-up
      1
      ·
      4 months ago

      Once I found out how to reliably use git source as an input i was a lot more interested.