diff --git a/pkgs/overlays/cosmic-packages.nix b/pkgs/overlays/cosmic-packages.nix index fcaee7b..9b9f6f5 100644 --- a/pkgs/overlays/cosmic-packages.nix +++ b/pkgs/overlays/cosmic-packages.nix @@ -1,4 +1,7 @@ -{ inputs ? import ../../inputs.nix {}}: +{ + inputs ? import ../../inputs.nix {}, + rustPlatform ? null, +}: self: super: @@ -28,5 +31,5 @@ in import "${nixos-cosmic}/pkgs" { final = self; prev = super; - rustPlatform = futureNixpkgs.rustPlatform; + rustPlatform = if rustPlatform != null then rustPlatform else futureNixpkgs.rustPlatform; }