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

minetime: init at 1.4.12 #56259

Merged
merged 7 commits into from Apr 26, 2019
Merged

minetime: init at 1.4.12 #56259

merged 7 commits into from Apr 26, 2019

Conversation

dtzWill
Copy link
Member

@dtzWill dtzWill commented Feb 23, 2019

Motivation for this change

Builds on #54693, making small changes for adding more attributes.

Open to suggestions for better approach, but this works well for me :).

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@@ -46,17 +46,16 @@ rec {
cd $APPDIR
exec ./AppRun "$@"
'';
});
} // (builtins.removeAttrs args [ "name" "src" "extraPkgs" ]));
Copy link
Member

Choose a reason for hiding this comment

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

Would with builtins; attrNames (functionArgs wrapAppImage) be preferable here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, neat! I think so, no need to maintain two lists and perhaps is clearer re:intent.

@dtzWill
Copy link
Member Author

dtzWill commented Feb 24, 2019

  • rebased onto master for final appimagetools that was merged
  • switched to functionArgs, seems okay but take a look please
  • I previously dropped inherit name extraPkgs in wrapType1 which I've restored, not sure what that's about.

re:third point maybe that isn't needed since args is merged in anyway, shrug.

@dtzWill
Copy link
Member Author

dtzWill commented Feb 24, 2019

(added commit removing the inherit in both variants, FWIW)

@dtzWill
Copy link
Member Author

dtzWill commented Feb 24, 2019

@GrahamcOfBorg eval

@dtzWill
Copy link
Member Author

dtzWill commented Feb 25, 2019

Look okay re:appimagetools changes, @tilpner ? :)

@carlosdagos
Copy link
Member

Thanks for adding this one @dtzWill. Really looking forward to it getting merged :)

@tilpner
Copy link
Member

tilpner commented Mar 25, 2019

Oh, sorry, I forgot about this one. Yes, looks fine!

@dtzWill
Copy link
Member Author

dtzWill commented Mar 25, 2019

It's up to 1.4.12 fwiw, I have that commit ready but can submit in a follow-up :). But it's just a bump and hashfix happily.

@dtzWill dtzWill changed the title minetime: init at 1.4.10 minetime: init at 1.4.12 Mar 25, 2019
@dtzWill
Copy link
Member Author

dtzWill commented Mar 25, 2019

@GrahamcOfBorg eval

@tilpner
Copy link
Member

tilpner commented Mar 26, 2019

I had one remaining suspicion about at which levels extraPkgs is optional now. As it is now, this breaks #54696 with called without required argument 'extraPkgs.

This is because defaults are only bound locally, the captured args don't have them.

let f = args@{ x ? 42 }: args; in f {}
=> {} (and not { x = 42; })

To fix this, move the defaulting of extraPkgs to wrapAppImage.

@dtzWill
Copy link
Member Author

dtzWill commented Mar 27, 2019

Locally merging the linked standardnotes PR results in a tree that evaluates standardnotes without that error, AFAICT. I think maybe 58ce19e fixed that, if unintentionally :). Can you confirm, or have any ideas why I can't reproduce? Thanks!

@tilpner
Copy link
Member

tilpner commented Mar 27, 2019

I'm not sure. I checked out standardnotes-appimagetools and picked all Appimage-related commits (g cherry-pick 6dcdf27 056d827 58ce19e).

I think 58ce19e097a9bc099bf86b45ca9317fddb59ccd0 is the one breaking it, not fixing it.

~/dev/nixpkgs test > g reset --hard dtz/feature/minetime
HEAD is now at acf3067fda7 minetime: 1.4.11 -> 1.4.12
~/dev/nixpkgs test > g merge --no-edit tilpner/standardnotes-appimagetools
Merge made by the 'recursive' strategy.
 pkgs/applications/editors/standardnotes/default.nix | 24 ++++++------------------
 1 file changed, 6 insertions(+), 18 deletions(-)
~/dev/nixpkgs test > nix-instantiate -A standardnotes
error: 'wrapAppImage' at /home/till/dev/nixpkgs/pkgs/build-support/appimage/default.nix:36:18 called without required argument 'extraPkgs', at /home/till/dev/nixpkgs/pkgs/build-support/appimage/default.nix:55:62
~/dev/nixpkgs test > g revert --no-edit 58ce19e097a9bc0
[test a71c178fec5] Revert "appimageTools: small simplification"
 Date: Wed Mar 27 10:32:18 2019 +0100
 1 file changed, 2 insertions(+)
~/dev/nixpkgs test > nix-instantiate -A standardnotes
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
/nix/store/ks7aw47l6zac25150jfnpwhjmap1c2dn-standardnotes-2.3.12.drv

@dtzWill
Copy link
Member Author

dtzWill commented Apr 24, 2019

@GrahamcOfBorg build minetime standardnotes joplin-desktop

@dtzWill
Copy link
Member Author

dtzWill commented Apr 24, 2019

Well regardless rebase + some new changes and all is well re:eval.

\o/

Look good, @tilpner ? :)

@dtzWill dtzWill merged commit 6e4fa85 into NixOS:master Apr 26, 2019
@dtzWill dtzWill deleted the feature/minetime branch April 26, 2019 04:22
@dtzWill
Copy link
Member Author

dtzWill commented Apr 28, 2019

I think 58ce19e is the one breaking it, not fixing it.

Sorry about this, you're right. See comments on #54696, just pushed the revert.

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

Successfully merging this pull request may close these issues.

None yet

4 participants