pkgs/overlays/cosmic-packages: update staging nixpkgs pin to current unstable

This commit is contained in:
Wroclaw 2024-08-16 16:55:14 +02:00
parent 2012c6e33b
commit b8aba059e6

View file

@ -7,21 +7,21 @@ 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);
# FIXME: use unstable nixpkgs when rust 1.80 will be available in unstable # Pinned unstable nixpkgs
stagingNixpkgsSrc = builtins.fetchTarball { futureNixpkgsSrc = builtins.fetchTarball {
name = "nixpkgs"; name = "nixpkgs";
url = "https://github.com/NixOS/nixpkgs/archive/b79cec4237cd0f655562890bf927466c68b48d68.tar.gz"; url = "https://github.com/NixOS/nixpkgs/archive/c3aa7b8938b17aebd2deecf7be0636000d62a2b9.tar.gz";
sha256 = "1mswisq9iwffg2d6rfxvr27mvi4w853d9rn222s2g76445d0iqh8"; sha256 = "1ds3yjcy52l8d3rkxr3b7h9c0c3nly079bgakjaasnfjj3xprrwr";
}; };
# Take rustPackages from staging nixpkgs # Take rustPackages from staging nixpkgs
stagingNixpkgs = import stagingNixpkgsSrc { futureNixpkgs = import futureNixpkgsSrc {
localSystem = self.stdenv.buildPlatform; localSystem = self.stdenv.buildPlatform;
config = self.config; config = self.config;
} // (if self.stdenv.buildPlatform == self.stdenv.hostPlatform then {} else { } // (if self.stdenv.buildPlatform == self.stdenv.hostPlatform then {} else {
crossSystem = self.stdenv.hostPlatform; crossSystem = self.stdenv.hostPlatform;
}); });
futureRustPackages = stagingNixpkgs.rustPackages; futureRustPackages = futureNixpkgs.rustPackages;
# Create nixpkgs with future rust # Create nixpkgs with future rust
nixpkgsWithFutureRust = self.extend (futureSelf: futureSuper: { nixpkgsWithFutureRust = self.extend (futureSelf: futureSuper: {