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

acme-client: init at 0.1.6 #33996

Merged
merged 1 commit into from Feb 20, 2018
Merged

acme-client: init at 0.1.6 #33996

merged 1 commit into from Feb 20, 2018

Conversation

pmahoney
Copy link
Contributor

Motivation for this change

Add acme-client package.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-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/)
  • Fits CONTRIBUTING.md.


src = fetchurl {
url = "https://kristaps.bsd.lv/acme-client/snapshots/acme-client-portable-${version}.tgz";
sha512 = "730c20bdf9d72b24e66c54b009a282e04da3ea8ce3b9eb053750672c53c9586b2879d87a565ddbab033d7ba6a577dd6399313b20cf654b185905db4de988b6b7";
Copy link
Member

@lukateras lukateras Jan 18, 2018

Choose a reason for hiding this comment

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

Nix format (Base32) is preferred. Also, sha256 should be sufficient.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Grabbed it from upstream's download page; will change


meta = {
homepage = https://kristaps.bsd.lv/acme-client/;
description = "Secure acme/Let's Encrypt client";
Copy link
Member

Choose a reason for hiding this comment

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

s/acme/ACME/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is copied verbatim from upstream's description, but happy to change.

meta = {
homepage = https://kristaps.bsd.lv/acme-client/;
description = "Secure acme/Let's Encrypt client";
platforms = stdenv.lib.platforms.all;
Copy link
Member

Choose a reason for hiding this comment

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

If meta had with stdenv.lib, it could have been omitted on individual attributes:

meta = with stdenv.lib; {
  platforms = platforms.all;
  license = licenses.isc;
}

Also, it seems unlikely to me that it would run on Windows: probably you've meant platforms.unix.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great review, appreciate the careful look! Will make all those changes.

@@ -0,0 +1,36 @@
{ stdenv
, apple_sdk
Copy link
Member

Choose a reason for hiding this comment

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

Given that this attribute is only required on Darwin, it could be optional:

, apple_sdk ? null

@pmahoney
Copy link
Contributor Author

@yegortimoshenko your comments have been addressed, thanks!

@joachifm
Copy link
Contributor

@GrahamcOfBorg build acme-client

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

post-installation fixup
moving /nix/store/nrvlkp096sj11m272h82v2q61nnsr600-acme-client-0.1.16/man to /nix/store/nrvlkp096sj11m272h82v2q61nnsr600-acme-client-0.1.16/share/man
shrinking RPATHs of ELF executables and libraries in /nix/store/nrvlkp096sj11m272h82v2q61nnsr600-acme-client-0.1.16
shrinking /nix/store/nrvlkp096sj11m272h82v2q61nnsr600-acme-client-0.1.16/bin/acme-client
gzipping man pages under /nix/store/nrvlkp096sj11m272h82v2q61nnsr600-acme-client-0.1.16/share/man/
strip is /nix/store/adidfx4pa7vmvby0gjqqmiwg2x49yr27-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/nrvlkp096sj11m272h82v2q61nnsr600-acme-client-0.1.16/bin 
patching script interpreter paths in /nix/store/nrvlkp096sj11m272h82v2q61nnsr600-acme-client-0.1.16
checking for references to /tmp/nix-build-acme-client-0.1.16.drv-0 in /nix/store/nrvlkp096sj11m272h82v2q61nnsr600-acme-client-0.1.16...
/nix/store/nrvlkp096sj11m272h82v2q61nnsr600-acme-client-0.1.16

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Partial log (click to expand)

mkdir -p /nix/store/ixwyiggdwjvmy288njmk5k0sw5fdpd96-acme-client-0.1.16/bin
install -m 0755 acme-client /nix/store/ixwyiggdwjvmy288njmk5k0sw5fdpd96-acme-client-0.1.16/bin
install -m 0644 acme-client.1 /nix/store/ixwyiggdwjvmy288njmk5k0sw5fdpd96-acme-client-0.1.16/man/man1
post-installation fixup
moving /nix/store/ixwyiggdwjvmy288njmk5k0sw5fdpd96-acme-client-0.1.16/man to /nix/store/ixwyiggdwjvmy288njmk5k0sw5fdpd96-acme-client-0.1.16/share/man
gzipping man pages under /nix/store/ixwyiggdwjvmy288njmk5k0sw5fdpd96-acme-client-0.1.16/share/man/
strip is /nix/store/v8ifq0hapblpr2z0hx4wvwg02w4aczqy-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/ixwyiggdwjvmy288njmk5k0sw5fdpd96-acme-client-0.1.16/bin
patching script interpreter paths in /nix/store/ixwyiggdwjvmy288njmk5k0sw5fdpd96-acme-client-0.1.16
/nix/store/ixwyiggdwjvmy288njmk5k0sw5fdpd96-acme-client-0.1.16

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

post-installation fixup
moving /nix/store/35lg80sfbhkqvfqyyfnz9pwvdwbbvgp4-acme-client-0.1.16/man to /nix/store/35lg80sfbhkqvfqyyfnz9pwvdwbbvgp4-acme-client-0.1.16/share/man
shrinking RPATHs of ELF executables and libraries in /nix/store/35lg80sfbhkqvfqyyfnz9pwvdwbbvgp4-acme-client-0.1.16
shrinking /nix/store/35lg80sfbhkqvfqyyfnz9pwvdwbbvgp4-acme-client-0.1.16/bin/acme-client
gzipping man pages under /nix/store/35lg80sfbhkqvfqyyfnz9pwvdwbbvgp4-acme-client-0.1.16/share/man/
strip is /nix/store/skd6ix5ipkyhxzq7naylj4digawakl4j-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/35lg80sfbhkqvfqyyfnz9pwvdwbbvgp4-acme-client-0.1.16/bin
patching script interpreter paths in /nix/store/35lg80sfbhkqvfqyyfnz9pwvdwbbvgp4-acme-client-0.1.16
checking for references to /build in /nix/store/35lg80sfbhkqvfqyyfnz9pwvdwbbvgp4-acme-client-0.1.16...
/nix/store/35lg80sfbhkqvfqyyfnz9pwvdwbbvgp4-acme-client-0.1.16

@joachifm joachifm merged commit a85ad94 into NixOS:master Feb 20, 2018
@pmahoney pmahoney deleted the acme-client branch February 25, 2018 04:50
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