nix-community / nixpkgs-wayland

Automated, pre-built packages for Wayland (sway/wlroots) tools for NixOS. [maintainers=@colemickens, @Artturin]
502 stars 45 forks source link

consider using nix-update #402

Open colemickens opened 1 year ago

colemickens commented 1 year ago

cc: @Artturin I started using nix-update for my own pkgs in my personal nix config and it seems to work well. I'm always down to delete code I don't want to maintain.

The only thing is, I'm not sure about how to handle it with the "override nixpkgs" concept we have going here and that you made nicer somewhat recently.

It might be possible, actually, to use nix-update and one of the options to tell it to use a different file for the replacement, instead of the pkg definition loc.

Just leaving this here as a note, and if you have any thoughts about it.

Artturin commented 1 year ago

this should be useful for us https://github.com/NixOS/nixpkgs/pull/205264

nix-update has a run update scripts (passthru.updateScript, see --use-update-script flag)

colemickens commented 1 year ago

I think with --override-filename that shouldn't even be necessary. I haven't read nix-update fully, but I assume it evals the pkg, uses nix's internal location to update the file. With --override-filename, presumably it should work and then just update the metadata.nix that is consistently used for all pkgs anyway.

Eventually I'll poke at it...