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:
parent
79c9506eea
commit
fc94800227
1 changed files with 9 additions and 0 deletions
9
third_party/nixpkgs/default.nix
vendored
9
third_party/nixpkgs/default.nix
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue