-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
tone: 0.1.5 -> 0.2.3 #364325
tone: 0.1.5 -> 0.2.3 #364325
Conversation
f4acc6b
to
d5cb945
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM and tested the binary. Looking at the releases this seems safe to backport.
nixpkgs-review
result
Generated using nixpkgs-review
.
Command: nixpkgs-review pr 364325
x86_64-linux
✅ 1 package built:
- tone
56d29bb
to
cb36052
Compare
Updated to 0.2.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for opening the issue and updating the package, upstream resolved it really fast!
pkgs/by-name/to/tone/package.nix
Outdated
rev = "v${version}"; | ||
sha256 = "sha256-HhXyOPoDtraT7ef0kpE7SCQbvGFLrTddzS6Kdu0LxW4="; | ||
hash = "sha256-fe0fcX617vsRdu42FEan181Zh5Todt9FLtOuD+C7yqA="; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got a hash mismatch
Most likely upstream deleted and made a new 0.2.3 release sandreas/tone#77 (comment)
error: hash mismatch in fixed-output derivation '/nix/store/9y5bgmn5il6fpwkgzhwi8sld7i6fpvi9-source.drv':
likely URL: https://github.com/sandreas/tone/archive/v0.2.3.tar.gz
specified: sha256-fe0fcX617vsRdu42FEan181Zh5Todt9FLtOuD+C7yqA=
got: sha256-NBFAPEeUKZgyfNlvcOBS1IpktEnI+fOd9WLj0ByzpLY=
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think that's what happened. Should be good now.
|
||
dotnetInstallFlags = [ | ||
"-p:PublishSingleFile=false" | ||
]; | ||
|
||
dotnet-sdk = dotnetCorePackages.sdk_6_0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even though currently .NET 8 is the default sdk, I think we should be explicit and keep dotnet-sdk
and dotnet-runtime
attrs (we can drop the extra dotnet flag that forces a TargetFramework). It could be useful for example when .NET 8 will become EOL and .NET 10 will be the default: instead of automatically upgrading to incompatible 10, this package would still work but will be marked insecure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great to know! I'll keep that in mind for C# packages from now on.
pkgs/by-name/to/tone/package.nix
Outdated
platforms = with lib.platforms; linux ++ darwin ++ windows; | ||
broken = !stdenv.hostPlatform.isLinux; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting pattern, and make sense since upstream supports these platforms and we only tested the linux build, but I haven't seen packages being marked as broken without someone observing the failure.
Nit:
platforms = with lib.platforms; linux ++ darwin ++ windows; | |
broken = !stdenv.hostPlatform.isLinux; | |
platforms = with lib.platforms; linux ++ darwin ++ windows; | |
broken = !stdenvNoCC.isLinux; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. I think that platforms
is supposed to represent all the platforms a package supports. I don't really have a good way test on a mac, and I don't even want to think about trying to run Nix on Windows, which is why I did it this way. I was recommended this approach when submitting either the wlink
or wchisp
package, since Linux was all I'd confirmed as working.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just tested this on both darwin archs, and it works at least enough to do --help
and --version
.
I think we should remove broken
and let it be added if/when actual problems are discovered.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for testing, I've updated this as suggested.
pkgs/by-name/to/tone/package.nix
Outdated
|
||
src = fetchFromGitHub { | ||
owner = "sandreas"; | ||
repo = pname; | ||
repo = "tone"; | ||
rev = "v${version}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit
rev = "v${version}"; | |
rev = "refs/tags/v${version}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
6ba9006
to
51e8b9f
Compare
8fa03fe
to
8e0867f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM!
nixpkgs-review
result
Generated using nixpkgs-review
.
Command: nixpkgs-review pr 364325
x86_64-linux
✅ 1 package built:
- tone
@ofborg build tone |
8e0867f
to
152ca05
Compare
Successfully created backport PR for |
Clean up the recipe, including a version check and update script.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.