diff options
author | Vincent Ambo <mail@tazj.in> | 2021-08-12T13·15+0300 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2021-08-12T13·45+0000 |
commit | fc94800227d7331231830b867bd1d3d5df533f4d (patch) | |
tree | 151223daa1fe1661b9ed7d519ff631a721eeedb5 /third_party/nixpkgs | |
parent | 79c9506eea638cd04ef2b0a87596cc388d13f41a (diff) |
feat(3p/nixpkgs): Expose nixpkgs commit hashes r/2720
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>
Diffstat (limited to 'third_party/nixpkgs')
-rw-r--r-- | third_party/nixpkgs/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/third_party/nixpkgs/default.nix b/third_party/nixpkgs/default.nix index fa42b5bb7b6d..eb3c1ca86cea 100644 --- a/third_party/nixpkgs/default.nix +++ b/third_party/nixpkgs/default.nix @@ -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 |