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

stumpish: init at 0.0.1 #44016

Merged
merged 1 commit into from Jul 31, 2018
Merged

stumpish: init at 0.0.1 #44016

merged 1 commit into from Jul 31, 2018

Conversation

ebzzry
Copy link

@ebzzry ebzzry commented Jul 23, 2018

Motivation for this change
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)
  • Fits CONTRIBUTING.md.

'';

meta = with stdenv.lib; {
homepage = https://github.com/stumpwm/stumwm-contrib;
Copy link
Contributor

Choose a reason for hiding this comment

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

typo

chmod +x $out/bin/stumpish
'';

postFixup = ''
Copy link
Contributor

Choose a reason for hiding this comment

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

Using a patch file with substituteAll would probably be cleaner.

sha256 = "1dxzsnir3158p8y2128s08r9ca0ywr9mcznivmhn1lycw8mg4nfl";
};

phases = [ "buildPhase" "installPhase" "postFixup" ];
Copy link
Contributor

Choose a reason for hiding this comment

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

Manually setting phases is frowned upon #28910

@ebzzry
Copy link
Author

ebzzry commented Jul 24, 2018

@jtojnar I updated default.nix. However, why is the file not being properly patched?

'';

installPhase = ''
cp $src/util/stumpish/stumpish $out/bin
Copy link
Contributor

Choose a reason for hiding this comment

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

You need to drop $src/. It contains the unpatched file.


installPhase = ''
cp $src/util/stumpish/stumpish $out/bin
chmod +x $out/bin/stumpish
Copy link
Contributor

Choose a reason for hiding this comment

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

This should not be necessary.

@ebzzry
Copy link
Author

ebzzry commented Jul 31, 2018

@jtojnar Is this better?

@jtojnar
Copy link
Contributor

jtojnar commented Jul 31, 2018

It does seem so.

@ebzzry
Copy link
Author

ebzzry commented Jul 31, 2018

@jtojnar Thanks!

@ebzzry
Copy link
Author

ebzzry commented Jul 31, 2018

Do you think we can merge this now?

@jtojnar jtojnar merged commit a81f73d into NixOS:master Jul 31, 2018
@ebzzry
Copy link
Author

ebzzry commented Jul 31, 2018

@jtojnar Thanks!

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

3 participants