postal-service: a combined for nix #177
Replies: 3 comments 10 replies
-
Can you pull from both stable and unstable? Suppose a config is two packages [pkgA, pkgB] pkgA only found in unstable, pkgB only found in stable. Would that work? |
Beta Was this translation helpful? Give feedback.
-
Alternatively, We can build something like nix-version. This will add support for more version (including versions that have been removed from the current branch). |
Beta Was this translation helpful? Give feedback.
-
I think something like @wyzlle suggested could work quite well. Instead of just searching stable and unstable, we could search all historic Nix archives. Then we could have
When creating the { }:
let
pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/41cc1d5d9584103be4108c1815c350e07c807036.tar.gz") {};
in with pkgs;
buildEnv {
name = "env";
paths = [
nodejs
];
} |
Beta Was this translation helpful? Give feedback.
-
postal-service is a way of combing stable and unstable versions of nix, to give a larger selection of packages. It would work like the current nix registry, just with more available versions.
If the same 2 versions are found in unstable and stable, and some config had changed, it will use the config from unstable. If config changes in different versions, it will always serve the config from the stable/unstable version that has that version.
The main goal is to add support for as many versions of nix packages as possible, whilst maintaining reproducibility and a "it just works" motto.
Beta Was this translation helpful? Give feedback.
All reactions