about summary refs log tree commit diff
diff options
context:
space:
mode:
-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 fa42b5bb7b..eb3c1ca86c 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