feat(3p/nixpkgs): Expose nixpkgs commit hashes

This makes it possible to use the hashes in things that should, for
example, be keyed on the nixpkgs version (such as cache-folders for
Nixery).

Change-Id: I500d13a4d96b0c28fcf6ca383d2a86515565da36
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3341
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2021-08-12 16:15:53 +03:00 committed by tazjin
parent 79c9506eea
commit fc94800227

View file

@ -49,10 +49,19 @@ let
stableOverlay = self: super: {
# nothing picked from stable currently
};
# Overlay to expose the nixpkgs commits we are using to other Nix code.
commitsOverlay = _: _: {
nixpkgsCommits = {
unstable = unstableHashes.commit;
stable = stableHashes.commit;
};
};
in import nixpkgsSrc {
config.allowUnfree = true;
config.allowBroken = true;
overlays = [
commitsOverlay
stableOverlay
depot.third_party.overlays.tvl
depot.third_party.overlays.haskell