Skip to content

cargo-tauri: 1.7.1-unstable-2024-08-16 -> 2.1.0 - #346277

Merged
Scrumplex merged 7 commits into
NixOS:masterfrom
getchoo-contrib:pkgs/cargo-tauri/2.0.1
Nov 14, 2024
Merged

Scrumplex merged 7 commits into
NixOS:masterfrom
getchoo-contrib:pkgs/cargo-tauri/2.0.1

Conversation

@getchoo

@getchoo getchoo commented Oct 3, 2024 •

Copy link
Copy Markdown
Member

Closes #355468

Changelog: https://github.com/tauri-apps/tauri/releases/tag/tauri-v2.0.1
Diff: tauri-apps/tauri@2b61447...tauri-v2.0.1

This release contains breaking changes. See the migration guide

cargo-tauri_1 has also been introduced in order to keep other packages that still haven't updated to v2 building. It should be removed in 25.05 as it will no longer be maintained upstream

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions Bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: documentation This PR adds or changes documentation 8.has: changelog This PR adds or changes release notes labels Oct 3, 2024
@getchoo getchoo mentioned this pull request Oct 4, 2024
2 of 13 tasks
@eveeifyeve

Copy link
Copy Markdown
Member

Also add a eval warning to Nix/NixOs.

@getchoo

getchoo commented Oct 4, 2024

Copy link
Copy Markdown
Member Author

Nothing is removed, so I don't believe there is much of a need; I also wouldn't want to cause evaluation warnings for all packages in the tree that still use v1. The release notes should do well enough for now as breaking updates are expected in new releases, and then a throw can be used for cargo-tauri_1 in 25.05 once it's no longer needed here

@eveeifyeve

eveeifyeve commented Oct 4, 2024 •

Copy link
Copy Markdown
Member

It seems like @ofborg is failing since it missing maintainers at hook.
/ofborg/checkout/1/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-0/pkgs/by-name/ca/cargo-tauri/hook.nix:51:11

Comment thread pkgs/by-name/ca/cargo-tauri/package.nix Resolved
Comment thread pkgs/by-name/ca/cargo-tauri/Cargo.lock Resolved
Comment thread pkgs/by-name/ca/cargo-tauri/package.nix Resolved
@getchoo
getchoo force-pushed the pkgs/cargo-tauri/2.0.1 branch from 55e4f15 to 743ecea Compare October 5, 2024 01:55
@ofborg ofborg Bot added 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Oct 5, 2024

@nim65s nim65s left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a merge conflict on master

@getchoo
getchoo force-pushed the pkgs/cargo-tauri/2.0.1 branch from 743ecea to 61947b0 Compare October 17, 2024 00:07
@kilianar kilianar mentioned this pull request Oct 26, 2024
3 of 13 tasks
@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 1, 2024
@kilianar

kilianar commented Nov 6, 2024

Copy link
Copy Markdown
Contributor

There’s currently a merge conflict with master due to recent changes: kiwitalk has been removed from nixpkgs, and both insulator2 and modrinth-app-unwrapped have been updated.

@getchoo
getchoo force-pushed the pkgs/cargo-tauri/2.0.1 branch from 61947b0 to aaf65d8 Compare November 6, 2024 22:08
@getchoo getchoo changed the title cargo-tauri: 1.7.1-unstable-2024-08-16 -> 2.0.1 cargo-tauri: 1.7.1-unstable-2024-08-16 -> 2.0.6 Nov 6, 2024
@getchoo getchoo removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 6, 2024
@getchoo

getchoo commented Nov 6, 2024

Copy link
Copy Markdown
Member Author

Merge conflicts have been fixed, cargo-tauri was bumped from 2.0.1 -> 2.0.6, cargo-tauri-1 was bumped from 1.8.0 -> 1.8.1, and both should (hopefully) now build with the new Darwin stdenv (i.e., without the old explicit frameworks)

@gepbird gepbird added the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 7, 2024
@gepbird

gepbird commented Nov 7, 2024 •

Copy link
Copy Markdown
Contributor

There's a new merge conflict in the release notes

Also eval fails

@getchoo
getchoo force-pushed the pkgs/cargo-tauri/2.0.1 branch from aaf65d8 to 1b7aa1c Compare November 8, 2024 16:44
@getchoo getchoo removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 8, 2024
@andreaskrath andreaskrath mentioned this pull request Nov 8, 2024
3 of 13 tasks
@getchoo

getchoo commented Nov 14, 2024

Copy link
Copy Markdown
Member Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 346277


x86_64-darwin

⏩ 4 packages marked as broken and skipped:
  • alcom
  • alexandria
  • cinny-desktop
  • insulator2
❌ 3 packages failed to build:
  • gitbutler
  • modrinth-app
  • modrinth-app-unwrapped
✅ 3 packages built:
  • cargo-tauri
  • cargo-tauri_1
  • en-croissant

aarch64-darwin

⏩ 4 packages marked as broken and skipped:
  • alcom
  • alexandria
  • cinny-desktop
  • insulator2
❌ 1 package failed to build:
  • gitbutler
✅ 5 packages built:
  • cargo-tauri
  • cargo-tauri_1
  • en-croissant
  • modrinth-app
  • modrinth-app-unwrapped

modrinth-app fails on x86_64-darwin due to an existing build failure of turbo. gitbutler fails for the same reason as above

@getchoo
getchoo requested a review from Scrumplex November 14, 2024 01:54
@eveeifyeve

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 346277

x86_64-darwin

⏩ 4 packages marked as broken and skipped:
❌ 3 packages failed to build:
✅ 3 packages built:

aarch64-darwin

⏩ 4 packages marked as broken and skipped:
❌ 1 package failed to build:
✅ 5 packages built:
modrinth-app fails on x86_64-darwin due to an existing build failure of turbo. gitbutler fails for the same reason as above

How did you do this?

@getchoo

getchoo commented Nov 14, 2024

Copy link
Copy Markdown
Member Author

nixpkgs-review pr --systems 'x86_64-darwin aarch64-darwin' 346277

@getchoo

getchoo commented Nov 14, 2024

Copy link
Copy Markdown
Member Author

an existing build failure of turbo

#355802

@Scrumplex

Scrumplex commented Nov 14, 2024 •

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 346277


x86_64-linux

⏩ 1 package marked as broken and skipped:
  • cinny-desktop
⏩ 2 packages blacklisted:
  • nixos-install-tools
  • tests.nixos-functions.nixos-test
❌ 3 packages failed to build:
  • alcom
  • alexandria
  • gitbutler
✅ 12 packages built:
  • cargo-tauri
  • cargo-tauri_1
  • en-croissant
  • gale
  • insulator2
  • modrinth-app
  • modrinth-app-unwrapped
  • mouse-actions-gui
  • pot
  • surrealist
  • treedome
  • wealthfolio

aarch64-linux

⏩ 4 packages marked as broken and skipped:
  • alcom
  • cinny-desktop
  • modrinth-app
  • modrinth-app-unwrapped
⏩ 2 packages blacklisted:
  • nixos-install-tools
  • tests.nixos-functions.nixos-test
❌ 8 packages failed to build:
  • en-croissant
  • gale
  • gitbutler
  • insulator2
  • mouse-actions-gui
  • pot
  • surrealist
  • wealthfolio
✅ 2 packages built:
  • cargo-tauri
  • cargo-tauri_1

x86_64-darwin

⏩ 4 packages marked as broken and skipped:
  • alcom
  • alexandria
  • cinny-desktop
  • insulator2
❌ 3 packages failed to build:
  • gitbutler
  • modrinth-app
  • modrinth-app-unwrapped
✅ 3 packages built:
  • cargo-tauri
  • cargo-tauri_1
  • en-croissant

aarch64-darwin

⏩ 4 packages marked as broken and skipped:
  • alcom
  • alexandria
  • cinny-desktop
  • insulator2
❌ 1 package failed to build:
  • gitbutler
✅ 5 packages built:
  • cargo-tauri
  • cargo-tauri_1
  • en-croissant
  • modrinth-app
  • modrinth-app-unwrapped

build logs: https://gist.github.com/Scrumplex/d4a1f8bd2137be55c730247a79906378

@Scrumplex

Copy link
Copy Markdown
Member

Could you rebase and change alcom to use cargo-tauri_1?

@getchoo
getchoo force-pushed the pkgs/cargo-tauri/2.0.1 branch from fadf4fb to 36118d8 Compare November 14, 2024 07:29
@Scrumplex

Scrumplex commented Nov 14, 2024 •

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 346277


x86_64-linux

⏩ 1 package blacklisted:
  • nixos-install-tools
❌ 1 package failed to build:
  • gitbutler
✅ 14 packages built:
  • alcom
  • alexandria
  • cargo-tauri
  • cargo-tauri_1
  • en-croissant
  • gale
  • insulator2
  • modrinth-app
  • modrinth-app-unwrapped
  • mouse-actions-gui
  • pot
  • surrealist
  • treedome
  • wealthfolio

aarch64-linux

⏩ 3 packages marked as broken and skipped:
  • alcom
  • modrinth-app
  • modrinth-app-unwrapped
⏩ 1 package blacklisted:
  • nixos-install-tools
❌ 8 packages failed to build:
  • en-croissant
  • gale
  • gitbutler
  • insulator2
  • mouse-actions-gui
  • pot
  • surrealist
  • wealthfolio
✅ 2 packages built:
  • cargo-tauri
  • cargo-tauri_1

x86_64-darwin

⏩ 3 packages marked as broken and skipped:
  • alcom
  • alexandria
  • insulator2
❌ 3 packages failed to build:
  • gitbutler
  • modrinth-app
  • modrinth-app-unwrapped
✅ 3 packages built:
  • cargo-tauri
  • cargo-tauri_1
  • en-croissant

aarch64-darwin

⏩ 3 packages marked as broken and skipped:
  • alcom
  • alexandria
  • insulator2
❌ 3 packages failed to build:
  • gitbutler
  • modrinth-app
  • modrinth-app-unwrapped
✅ 3 packages built:
  • cargo-tauri
  • cargo-tauri_1
  • en-croissant

https://gist.github.com/Scrumplex/73d0c2e79abec82c4b8500eca91e4953

@Scrumplex

Scrumplex commented Nov 14, 2024 •

Copy link
Copy Markdown
Member

I will disregard gitbutler failures, as they will be fixed with #355366, modrinth-app seems to require a similar fix (not in this PR), the aarch64-linux failures are all reporting failed to build app: Target aarch64-unknown-linux-gnu does not exist. Please run `rustup target list` to see the available targets. which might be a regression as I can also see it on master for some of these.

@Scrumplex Scrumplex mentioned this pull request Nov 14, 2024
4 of 13 tasks
@Scrumplex

Copy link
Copy Markdown
Member

I would be inclined to merge this as is, but when building some of the aarch64-linux packages touched by this PR it fails for me with failed to build app: Target aarch64-unknown-linux-gnu does not exist. Please run `rustup target list` to see the available targets..

I don't have an actual arm builder. I use binfmt.emulatedSystems, so that might be the issue here?

@getchoo

getchoo commented Nov 14, 2024

Copy link
Copy Markdown
Member Author

Seems so. This is the result when building on an Ampere server

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 346277


aarch64-linux

⏩ 3 packages marked as broken and skipped:
  • alcom
  • modrinth-app
  • modrinth-app-unwrapped
⏩ 1 package blacklisted:
  • nixos-install-tools
❌ 1 package failed to build:
  • gitbutler
✅ 9 packages built:
  • cargo-tauri
  • cargo-tauri_1
  • en-croissant
  • gale
  • insulator2
  • mouse-actions-gui
  • pot
  • surrealist
  • wealthfolio

@GrimmTheShrimp

GrimmTheShrimp commented Apr 17, 2025 •

Copy link
Copy Markdown
Contributor

It should be removed in 25.05 as it will no longer be maintained upstream

Is this still the plan? I believe there is still tauri v1 apps in nixpkgs, but those build tauri via cargo and don't depend on this, i believe.

@getchoo

getchoo commented Apr 17, 2025

Copy link
Copy Markdown
Member Author

Is this still the plan? I believe there is still tauri v1 apps in nixpkgs

Unless those packages can be updated or are also unmaintained, this might need to stay. Shouldn't be too bad though, as it seems upstream has continued to sorta maintain the 1.x series

but those build tauri via cargo and don't depend on this, i believe

They use this CLI to build

An alternative could be to reimplement some of the wrapping this CLI does around Cargo, manual creation and installation of assets, etc., but it'd be a lot of work for little benefit IMO

@GrimmTheShrimp

GrimmTheShrimp commented Apr 17, 2025 •

Copy link
Copy Markdown
Contributor

I went through all consumers of webkitgtk_4_0 in #398999

The current tauri v1 list:

/nix/store/0vl2aqw0jaxz9zzl5zvbwdlgk8xqvrxa-rquickshare-legacy-0.11.4.drv
/nix/store/189qb6x1afnhq11bgl6v9qhqfba6i7f0-quantframe-1.3.4.drv
/nix/store/3sjp8q7jiirz57knjn0bpfbsfmpjwm0x-cinny-desktop-4.6.0.drv
/nix/store/9f8di9mqqqr0s90b1kq686pxk2n29wyk-pot-3.0.6.drv
/nix/store/9q9bgb46p3dj6n9hzix5nl2448abf5wk-mouse-actions-gui-0.4.5.drv
/nix/store/bip47im0rnl2bk3wbjj6gzxkwg96xqgq-restic-browser-0.3.2.drv
/nix/store/cany9jpcr2i3vi5fm0qif3r9xdyz3gcp-alexandria-0.13.1.drv
/nix/store/fxzw2i8239f8zf9wx7al2cvzw9k5yd9v-insulator2-2.13.2.drv
/nix/store/h99ksdsnvs6kivgqfgkawhgcbv4j9miv-en-croissant-0.11.1.drv

Of those, i only really care about cinny-desktop and just a little about en-croissant (both do have some upstream maintenance). We probably do not want to break cinny on 25.05 so i guess this stays for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Package request: cargo-tauri-v2

10 participants