-
I'm trying to make a dev environment flake that pulls in the latest version of Tauri. That requires rust 1.74 or newer. The tauri.nix I copied from nixpkgs, updating the version. Its a fairly straightforward rustPlatform.buildRustPackage. tauri.nix
In my dev environment flake, I'm pulling in monthly fenix:
And then I'm attempting to substitute a fenix-ified rustPlatform when I callPackage the tauri nix file:
I'm including But adding in my-tauri gives me the usual error of So modifying rustPlatform this way didn't work. What's the correct way to do it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Instead of:
perhaps you could try passing
For replacing the value of |
Beta Was this translation helpful? Give feedback.
-
Sort-of solved. I copied this syntax out of all-packages.nix, and it allows me to upgrade the compiler from 1.73 to 1.76, since there happens to be a rustPackages_1_76 in nixpkgs 23.11.
Tauri needs 1.74 or greater so that works. Would be nice to be able to use arbitrary versions of rust to make a rustPlatform, but I don't need that today. |
Beta Was this translation helpful? Give feedback.
Sort-of solved. I copied this syntax out of all-packages.nix, and it allows me to upgrade the compiler from 1.73 to 1.76, since there happens to be a rustPackages_1_76 in nixpkgs 23.11.
Tauri needs 1.74 or greater so that works. Would be nice to be able to use arbitrary versions of rust to make a rustPlatform, but I don't need that today.