pkgs/overlays/cosmic-packages: use unstable pinned in upstream.

This commit is contained in:
Wroclaw 2024-10-02 01:44:58 +02:00
parent cce35f8934
commit e4813107c3

View file

@ -7,14 +7,18 @@ let
cosmicPkgsMainDir = builtins.readDir "${nixos-cosmic}/pkgs"; cosmicPkgsMainDir = builtins.readDir "${nixos-cosmic}/pkgs";
cosmicPkgsDirs = builtins.filter (v: cosmicPkgsMainDir."${v}" == "directory") (builtins.attrNames cosmicPkgsMainDir); cosmicPkgsDirs = builtins.filter (v: cosmicPkgsMainDir."${v}" == "directory") (builtins.attrNames cosmicPkgsMainDir);
# Pinned unstable nixpkgs # 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 { futureNixpkgsSrc = builtins.fetchTarball {
name = "nixpkgs"; name = "nixpkgs";
url = "https://github.com/NixOS/nixpkgs/archive/c3aa7b8938b17aebd2deecf7be0636000d62a2b9.tar.gz"; url = "https://github.com/NixOS/nixpkgs/archive/${pinnedNixpkgsRev}.tar.gz";
sha256 = "1ds3yjcy52l8d3rkxr3b7h9c0c3nly079bgakjaasnfjj3xprrwr"; sha256 = pinnedNixpkgsNarHash;
}; };
# Take rustPackages from staging nixpkgs # Take rustPackages from pinned nixpkgs
futureNixpkgs = import futureNixpkgsSrc { futureNixpkgs = import futureNixpkgsSrc {
localSystem = self.stdenv.buildPlatform; localSystem = self.stdenv.buildPlatform;
config = self.config; config = self.config;