ikidd@lemmy.world to Linux@lemmy.mlEnglish · 1 month agoThree Years of Nix and NixOS: The Good, the Bad, and the Uglypierrezemb.frexternal-linkmessage-square107linkfedilinkarrow-up1187arrow-down17 cross-posted to: [email protected][email protected]
arrow-up1180arrow-down1external-linkThree Years of Nix and NixOS: The Good, the Bad, and the Uglypierrezemb.frikidd@lemmy.world to Linux@lemmy.mlEnglish · 1 month agomessage-square107linkfedilink cross-posted to: [email protected][email protected]
minus-squaremsherburn33@lemmy.mllinkfedilinkarrow-up4·1 month 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"}"; })
minus-squarephantomwise@lemmy.mllinkfedilinkarrow-up1·1 month agoWow I had no idea you could do that, I’ll try it thanks ! °o°
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 thesrc
of the package with that. The source gets updated when you donix 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"}"; })
Wow I had no idea you could do that, I’ll try it thanks ! °o°