madjar / nox

Tools to make nix nicer to use
MIT License
308 stars 35 forks source link

Provide some way to update non-nix-compliant snapshots #3

Open madjar opened 10 years ago

madjar commented 10 years ago

Some stuff (like the rustc or cargo snapshot) change everyday but stay at the same url, making it impossible to put them in nixpkgs.

I've written a dirty script that update the sha, but it could be possible to make it much more clean, using annotations like this:

11:  src = fetchurl {
12-    url = "some_url"; # nox-up:packagename
13-    sha256 = "some_sha"; # nox-up:packagename
14-  };

Making it possible for a nox-up script to find the relevant package, determine it's url, nix-prefetch it, update the sha, and build it.

The challenge would be with interpolated urls.

Some similar script could be used to update the ref of git packages.

madjar commented 10 years ago

Actually, the monitor (http://monitor.nixos.org/) kind of does that, so I should take a closer look.

jagajaga commented 9 years ago

Check this https://github.com/MarcWeber/nix-repository-manager

madjar commented 9 years ago

Looks great, thanks, I'll have to look into it.