Skip to content

Conversation

@linsui
Copy link
Contributor

@linsui linsui commented Mar 11, 2025

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/)
  • 25.05 Release Notes (or backporting 24.11 and 25.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 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Mar 11, 2025
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
description = "Music synthesizer";
description = "Simple music synthesizer app based on usual qwerty-keyboard for input";

Copy link
Member

@ethancedwards8 ethancedwards8 left a comment

Choose a reason for hiding this comment

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

LGTM. Nice work.

@wegank wegank added the 12.approvals: 2 This PR was reviewed and approved by two persons. label Mar 12, 2025
Comment on lines +12 to +20
rustPlatform.buildRustPackage rec {
pname = "qwertone";
version = "0.5.0";

src = fetchFromGitLab {
domain = "gitlab.com";
owner = "azymohliad";
repo = "qwertone";
tag = "v${version}";
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
rustPlatform.buildRustPackage rec {
pname = "qwertone";
version = "0.5.0";
src = fetchFromGitLab {
domain = "gitlab.com";
owner = "azymohliad";
repo = "qwertone";
tag = "v${version}";
rustPlatform.buildRustPackage (finalAttrs: {
pname = "qwertone";
version = "0.5.0";
src = fetchFromGitLab {
domain = "gitlab.com";
owner = "azymohliad";
repo = "qwertone";
tag = "v${finalAttrs.version}";

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If this really useful? When overriding the version, the whole src and cargoDeps need to be overrided.

Copy link
Contributor

@niklaskorz niklaskorz Apr 23, 2025

Choose a reason for hiding this comment

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

It is considered a best practice as it also removes the need for rec, but I will not block you on it

(especially not blocking because buildRustPackage only recently got the ability to use finalAttrs, so there might a treewide PR eventually as many packages still use rec for the version)

Copy link
Contributor

@niklaskorz niklaskorz left a comment

Choose a reason for hiding this comment

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

image

@niklaskorz niklaskorz merged commit f02b802 into NixOS:master Apr 23, 2025
28 checks passed
@linsui linsui deleted the qwertone branch April 23, 2025 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages 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: 2 This PR was reviewed and approved by two persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants