about summary refs log tree commit diff
path: root/third_party/nixpkgs/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nixpkgs/default.nix')
-rw-r--r--third_party/nixpkgs/default.nix9
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