pkgs/overlays/cosmic-packages: allow to provide own rustPlatform

This commit is contained in:
Wroclaw 2024-10-02 02:21:08 +02:00
parent 667f7d8199
commit 7c9d74e561

View file

@ -1,4 +1,7 @@
{ inputs ? import ../../inputs.nix {}}: {
inputs ? import ../../inputs.nix {},
rustPlatform ? null,
}:
self: super: self: super:
@ -28,5 +31,5 @@ in
import "${nixos-cosmic}/pkgs" { import "${nixos-cosmic}/pkgs" {
final = self; final = self;
prev = super; prev = super;
rustPlatform = futureNixpkgs.rustPlatform; rustPlatform = if rustPlatform != null then rustPlatform else futureNixpkgs.rustPlatform;
} }