Skip to content

Conversation

Noah765
Copy link

@Noah765 Noah765 commented Jun 2, 2025

Rinf is a framework for creating cross-platform Rust apps by using Flutter as the UI layer. The project consists of a Dart package, a Rust crate, and a CLI tool that generates Dart code from Rust structs.

Closes #342071

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/)
  • Nixpkgs 25.11 Release Notes (or backporting 24.11 and 25.05 Nixpkgs Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
  • NixOS 25.11 Release Notes (or backporting 24.11 and 25.05 NixOS Release notes)
    • (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 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Jun 2, 2025
@NixOSInfra NixOSInfra added the 12.first-time contribution This PR is the author's first one; please be gentle! label Jun 2, 2025
Copy link
Contributor

@JuliusFreudenberger JuliusFreudenberger left a comment

Choose a reason for hiding this comment

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

Welcome to nixpkgs and thank you for your contribution!

Thank you for asking upstream about providing a lockfile.
Let's continue with fetching the crate for now and see what they respond.

I do not see any problems with this derivation and started a nixpkgs-review run on this PR.

@JuliusFreudenberger
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 413223

Logs: https://github.com/JuliusFreudenberger/nixpkgs-review-gha/actions/runs/15393662850


x86_64-linux (sandbox = true)

✅ 1 package built:
  • rinf_cli

aarch64-linux (sandbox = true)

✅ 1 package built:
  • rinf_cli

x86_64-darwin (sandbox = true)

✅ 1 package built:
  • rinf_cli

aarch64-darwin (sandbox = true)

✅ 1 package built:
  • rinf_cli

Copy link
Contributor

@JuliusFreudenberger JuliusFreudenberger left a comment

Choose a reason for hiding this comment

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

Approved automatically following the successful run of nixpkgs-review.

@Noah765 Noah765 changed the title rinf_cli: init at 8.4.0 rinf_cli: init at 8.6.0 Jun 4, 2025
@JuliusFreudenberger JuliusFreudenberger added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jun 4, 2025
@JuliusFreudenberger
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 413223

Logs: https://github.com/JuliusFreudenberger/nixpkgs-review-gha/actions/runs/15452448205


x86_64-linux (sandbox = true)

✅ 1 package built:
  • rinf_cli

aarch64-linux (sandbox = true)

✅ 1 package built:
  • rinf_cli

x86_64-darwin (sandbox = true)

✅ 1 package built:
  • rinf_cli

aarch64-darwin (sandbox = true)

✅ 1 package built:
  • rinf_cli

Copy link
Contributor

@JuliusFreudenberger JuliusFreudenberger left a comment

Choose a reason for hiding this comment

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

Approved automatically following the successful run of nixpkgs-review.

@Noah765
Copy link
Author

Noah765 commented Jun 7, 2025

As far as I know this needs to be used with flutterr. flutter can install it. Why is this needed?

It's useful to install this with Nix as part of devshells. I don't have Flutter installed on my system. Instead, I use devshells to install dependencies on a per-project basis. rinf_cli is one such dependency.
Additionally, rinf_cli is a Rust project that is usually installed with Cargo.

@Noah765 Noah765 changed the title rinf_cli: init at 8.6.0 rinf_cli: init at 8.7.1 Jul 27, 2025
@Noah765 Noah765 changed the title rinf_cli: init at 8.7.1 rinf_cli: init at 8.7.2 Aug 18, 2025
@shakhzodkudratov
Copy link
Member

@Noah765 hi, is it possible to add older versions too? for example Flutter 3.24 supports only [email protected] and etc. Maybe rinf_cli-7 would be good version to support. Thanks in advance!

@qzylinra qzylinra mentioned this pull request Sep 1, 2025
13 tasks
@SigmaSquadron
Copy link
Contributor

@Noah765 hi, is it possible to add older versions too? for example Flutter 3.24 supports only [email protected] and etc. Maybe rinf_cli-7 would be good version to support. Thanks in advance!

We are not blocking someone's first PR to Nixpkgs with a request for them to maintain multiple versions of the same package. Please overlay this package with an older version if you need compatibility with older versions of Flutter.

meta = {
mainProgram = "rinf";
description = "Rust for native business logic, Flutter for flexible and beautiful GUI";
homepage = "https://rinf.cunarist.com";
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
homepage = "https://rinf.cunarist.com";
homepage = "https://rinf.cunarist.com";
changelog = "https://github.com/cunarist/rinf/releases/tag/v${version}";

From @aljazerzen's PR.

Copy link
Author

Choose a reason for hiding this comment

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

Done

pname = "rinf_cli";
version = "8.7.2";

src = fetchCrate {
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be worth asking upstream to commit Cargo.Lock per the instructions of the Cargo Book and fetching from GitHub instead, but if they're unresponsive, this isn't blocking.

Copy link
Contributor

Choose a reason for hiding this comment

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

Nevermind, missed cunarist/rinf#640. Let's wait a bit for a reply.

Copy link
Author

Choose a reason for hiding this comment

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

I already asked here


meta = {
mainProgram = "rinf";
description = "Rust for native business logic, Flutter for flexible and beautiful GUI";
Copy link
Contributor

@SigmaSquadron SigmaSquadron Sep 1, 2025

Choose a reason for hiding this comment

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

Suggested change
description = "Rust for native business logic, Flutter for flexible and beautiful GUI";
description = "Framework for creating cross-platform Rust apps leveraging Flutter";

Per the documentation, the meta.description attribute should avoid subjective/editorialised language and be objective.

Copy link
Author

Choose a reason for hiding this comment

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

Done

@Noah765
Copy link
Author

Noah765 commented Sep 1, 2025

@Noah765 hi, is it possible to add older versions too? for example Flutter 3.24 supports only [email protected] and etc. Maybe rinf_cli-7 would be good version to support. Thanks in advance!

I don't think that it is worth maintaining multiple versions of CLI tools like this one just for compatibility, as that would overcrowd nixpkgs with endless amounts of legacy package versions.

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

Labels

8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. 12.first-time contribution This PR is the author's first one; please be gentle!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Package request: rinf

5 participants