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
|
let
|
||||||
nixos-cosmic = inputs.cosmic-modules;
|
nixos-cosmic = inputs.cosmic-modules;
|
||||||
|
|
||||||
# Pinned unstable nixpkgs from cosmic-modules
|
# Initialize pinned unstable nixpkgs
|
||||||
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
|
|
||||||
futureNixpkgs = let
|
futureNixpkgs = let
|
||||||
extended = self.extend (import ./unstable-from-source.nix {
|
extended = self.extend (import ./unstable-from-source.nix {
|
||||||
unstableSource = futureNixpkgsSrc;
|
unstableSource = inputs.nixpkgs-unstable;
|
||||||
});
|
});
|
||||||
in extended.unstable;
|
in extended.unstable;
|
||||||
in
|
in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue