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
gargoyle: 2018.10.06 -> 2019.01.01 #85576
Conversation
Build fails locally due to incorrect hash for GitHub source. @GrahamcOfBorg build gargoyle |
I think I must not be deriving it properly then. What's the best method of doing this? |
I think the proper way is something like (from command-line) nix-prefetch-git I usually just go the lazy way and copy the SHA256 that Nix puts on the command line though. |
You should always try to build it locally via |
1e55225
to
31194cd
Compare
For some reason I must have altered the sha256 after building, but before pushing, because I've been running 2019.01.01 on my system locally for a while now. |
Strange. I can try to review sometime if you update the hash.
…On Tue, Apr 28, 2020, 6:46 PM Benjamin Slade ***@***.***> wrote:
You should always try to build it locally via nix-build -A gargoyle
before pushing a PR. saves everyone time. And if you can't for some reason,
then mark your PR as draft and ask OfBorg (i.e. GrahamcOfBorg like I did
above) to build your package, though it's nice to limit your builds due to
OfBorg being a shared resource.
For some reason I must have altered the sha256 after building, but before
pushing, because I've been running 2019.01.01 on my system locally for a
while now.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#85576 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACNZYI7UJBHPYON6EWS77XLRO5MDTANCNFSM4ML5GEXA>
.
|
I already did (before replying), and force pushed the branch. |
OK. GitHub email doesn't notify on force push.
…On Tue, Apr 28, 2020, 8:47 PM Benjamin Slade ***@***.***> wrote:
Strange. I can try to review sometime if you update the hash.
I already did (before replying), and force pushed the branch.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#85576 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACNZYIYT7UIDYEOGBREYAU3RO52ITANCNFSM4ML5GEXA>
.
|
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.
Passes nixpkgs-review pr 85576
Not tested locally.
https://github.com/NixOS/nixpkgs/pull/85576
1 package built:
gargoyle
pkgs/games/gargoyle/default.nix
Outdated
@@ -20,13 +20,13 @@ let | |||
in | |||
|
|||
stdenv.mkDerivation { |
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.
stdenv.mkDerivation { | |
stdenv.mkDerivation rec { |
31194cd
to
4231256
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 for the changes!
Looks almost good to go. It looks like you accidentally used name
in place of pname
. Also one small comment about the ordering in src
.
sha256 = "0icwgc25gp7krq6zf66hljydc6vps6bb4knywnrfgnfcmcalqqx9"; | ||
rev = 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.
Could you move the rev
attribute between the repo
and sha256
attributes? Doesn't change the evaluation of the derivation, but this is the more canonical ordering in nixpkgs
.
4231256
to
8c27b1b
Compare
Somewhere along the way, you switched the hash (
as the hash. |
- latest released version - changes: adopt suggestions + more fixes
8c27b1b
to
37d231a
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.
LGTM, thanks!
Result of nixpkgs-review pr 85576
1
1 package built:
- gargoyle
Tested running gargoyle.
Motivation for this change
update to latest release
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)Notes