Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system76-power: 1.2.1 -> 1.2.2 #350954

Merged
merged 1 commit into from
Oct 25, 2024
Merged

Conversation

ahoneybun
Copy link
Contributor

@ahoneybun ahoneybun commented Oct 24, 2024

What this does:

  • Use HEDT fan curve for thelio-astra-a1

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.

@ahoneybun ahoneybun requested a review from sjmonson October 24, 2024 14:13
@ahoneybun ahoneybun marked this pull request as ready for review October 24, 2024 14:36
@sjmonson
Copy link
Contributor

LGTM I will try to give it a test later today.

Copy link
Contributor

Choose a reason for hiding this comment

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

Is it feasible to have upstream add a checksum to the sysfs-class dependency? Then we could drop this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought the Cargo.lock file is for any Rust project?

Copy link
Contributor

Choose a reason for hiding this comment

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

No, if the Cargo.lock is inside the src tarball that is pulled then you just need to specify the hash of the file. See documentation and the previous version of this package:

cargoHash = "sha256-Vps02ZRVmeOQ8jDFZJYAUb502MhqY+2YV2W1/9XGY+0=";

However, I am actually not sure which method is actually preferred between what we do now vs the cargoHash field.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure either, this is how it is for the COSMIC packages that I have seen and maintain so it seems fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Upstream is open to it, I can make a PR or you can. Just let me know and I'll get it handled either way.

Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure either, this is how it is for the COSMIC packages that I have seen and maintain so it seems fine.

It is allowed, but definitely disfavoured.

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 I had the steps to add it to upstream I'd be happy to do that and make another PR to remove it from this package!

Copy link
Member

Choose a reason for hiding this comment

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

A new release of sysfs-class probably needs to be published to crates.io, and then system76-power upstream needs to use that released version rather than a git dependency, and then Nixpkgs needs to be updated to that version of system76-power.

@ofborg ofborg bot added the 8.has: package (new) This PR adds a new package label Oct 24, 2024
@ofborg ofborg bot requested a review from sjmonson October 24, 2024 16:01
@ofborg ofborg bot added 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 10.rebuild-linux: 1 labels Oct 24, 2024
Copy link
Member

@alyssais alyssais left a comment

Choose a reason for hiding this comment

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

One tiny thing. Otherwise looks fine.

pkgs/by-name/sy/system76-power/package.nix Outdated Show resolved Hide resolved
@ahoneybun ahoneybun force-pushed the system76-power-1.2.2 branch from 12c6068 to e4ffba5 Compare October 24, 2024 22:05
@ahoneybun ahoneybun requested a review from alyssais October 24, 2024 22:05
@alyssais alyssais merged commit e9eca9b into NixOS:master Oct 25, 2024
26 of 28 checks passed
@ahoneybun ahoneybun deleted the system76-power-1.2.2 branch October 26, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 10.rebuild-linux: 1 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants