Skip to content

How to use fenix + rustPlatform + callPackage? #146

Closed Answered by bburdette
bburdette asked this question in Q&A
Discussion options

You must be logged in to vote

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.

        my-tauri = pkgs.callPackage ./tauri/my-tauri.nix {
          inherit (pkgs.rustPackages_1_76) rustPlatform;
        };

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.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@bburdette
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by bburdette
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants