nixpkgs/overlays/cosmic-package: use nixpkgs-unstable from inputs
instead of nixpkgs-unstable pinned in flake lock file
This commit is contained in:
parent
0ae2504b5d
commit
9afdfdeeab
1 changed files with 2 additions and 13 deletions
|
@ -8,21 +8,10 @@ self: super:
|
|||
let
|
||||
nixos-cosmic = inputs.cosmic-modules;
|
||||
|
||||
# Pinned unstable nixpkgs from cosmic-modules
|
||||
cosmicModulesLock = builtins.fromJSON (builtins.readFile "${nixos-cosmic}/flake.lock");
|
||||
pinnedNixpkgsRev = cosmicModulesLock.nodes.nixpkgs.locked.rev;
|
||||
pinnedNixpkgsNarHash = cosmicModulesLock.nodes.nixpkgs.locked.narHash;
|
||||
|
||||
futureNixpkgsSrc = builtins.fetchTarball {
|
||||
name = "nixpkgs";
|
||||
url = "https://github.com/NixOS/nixpkgs/archive/${pinnedNixpkgsRev}.tar.gz";
|
||||
sha256 = pinnedNixpkgsNarHash;
|
||||
};
|
||||
|
||||
# Initialize pinned nixpkgs
|
||||
# Initialize pinned unstable nixpkgs
|
||||
futureNixpkgs = let
|
||||
extended = self.extend (import ./unstable-from-source.nix {
|
||||
unstableSource = futureNixpkgsSrc;
|
||||
unstableSource = inputs.nixpkgs-unstable;
|
||||
});
|
||||
in extended.unstable;
|
||||
in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue