2024-08-08 06:06:41 +02:00
|
|
|
{ inputs ? import ../../inputs.nix {}}:
|
|
|
|
|
2024-08-08 16:47:36 +02:00
|
|
|
self: super:
|
|
|
|
|
2024-08-08 06:06:41 +02:00
|
|
|
let
|
|
|
|
nixos-cosmic = inputs.cosmic-modules;
|
|
|
|
|
2024-10-02 01:44:58 +02:00
|
|
|
# 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;
|
|
|
|
|
2024-08-16 16:55:14 +02:00
|
|
|
futureNixpkgsSrc = builtins.fetchTarball {
|
2024-08-08 06:06:41 +02:00
|
|
|
name = "nixpkgs";
|
2024-10-02 01:44:58 +02:00
|
|
|
url = "https://github.com/NixOS/nixpkgs/archive/${pinnedNixpkgsRev}.tar.gz";
|
|
|
|
sha256 = pinnedNixpkgsNarHash;
|
2024-08-08 06:06:41 +02:00
|
|
|
};
|
|
|
|
|
2024-10-02 02:20:46 +02:00
|
|
|
# Initialize pinned nixpkgs
|
2024-08-16 16:55:14 +02:00
|
|
|
futureNixpkgs = import futureNixpkgsSrc {
|
2024-08-08 16:47:36 +02:00
|
|
|
localSystem = self.stdenv.buildPlatform;
|
|
|
|
config = self.config;
|
|
|
|
} // (if self.stdenv.buildPlatform == self.stdenv.hostPlatform then {} else {
|
|
|
|
crossSystem = self.stdenv.hostPlatform;
|
|
|
|
});
|
2024-08-08 06:06:41 +02:00
|
|
|
in
|
|
|
|
|
2024-10-02 02:20:46 +02:00
|
|
|
import "${nixos-cosmic}/pkgs" {
|
|
|
|
final = self;
|
|
|
|
prev = super;
|
|
|
|
rustPlatform = futureNixpkgs.rustPlatform;
|
|
|
|
}
|