# An abstraction over the different source pins in this directory { # The main niv pins, these are without any standard names: # { # = ; # } main = import ./sources.nix { sourcesFile = ./sources.json; }; # Sources for Nix releases, the attribute name is the release version. # These are done specially because updating these is non-trivial. # See ./update-nix-releases.nix # { # = ; # } nix = builtins.mapAttrs (name: value: # This matches the nix-prefetch-url --unpack --name source call in ./update-nix-releases.nix fetchTarball { name = "source"; url = value.url; sha256 = value.sha256; } ) (builtins.fromJSON (builtins.readFile ./nix-versions.json)); # Sources for Nixpkgs releases, the attribute name is the release name. # These can be updated with the standard niv tooling, but are tracked separately to avoid having to filter them out during processing. # See ./update-nixpkgs-releases.nix nixpkgs = import ./sources.nix { sourcesFile = ./nixpkgs-versions.json; }; }