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

gnu-pw-mgr: init 2.3.2 #43100

Merged
merged 2 commits into from Jul 6, 2018
Merged

gnu-pw-mgr: init 2.3.2 #43100

merged 2 commits into from Jul 6, 2018

Conversation

qoelet
Copy link
Member

@qoelet qoelet commented Jul 6, 2018

Motivation for this change

gnu-pw-mgr: init 2.3.2

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 lib; {
homepage = "https://www.gnu.org/software/gnu-pw-mgr/";
description = "GNU gnu-pw-mgr is a password manager designed to make it easy to reconstruct difficult passwords when they are needed, while limiting the risk of attack.";
Copy link
Member

@dotlambda dotlambda Jul 6, 2018

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Amended.

stdenv.mkDerivation {
name = "gnu-pw-mgr-2.3.2";
src = fetchurl {
url = "http://ftp.gnu.org/gnu/gnu-pw-mgr/gnu-pw-mgr-2.3.2.tar.xz";
Copy link
Member

Choose a reason for hiding this comment

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

Please use ${name} in here.

homepage = "https://www.gnu.org/software/gnu-pw-mgr/";
description = "GNU gnu-pw-mgr is a password manager designed to make it easy to reconstruct difficult passwords when they are needed, while limiting the risk of attack.";
license = with licenses; [ gpl3Plus lgpl3Plus ];
platforms = 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.

Did you test this on Darwin?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope, amended this to unix - would that be a more appropriate option?

Copy link
Contributor

Choose a reason for hiding this comment

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

No, platforms.unix includes Darwin. Use platforms.linux to exclude Darwin.

description = "GNU gnu-pw-mgr is a password manager designed to make it easy to reconstruct difficult passwords when they are needed, while limiting the risk of attack.";
license = with licenses; [ gpl3Plus lgpl3Plus ];
platforms = platforms.all;
maintainers = [ ];
Copy link
Member

Choose a reason for hiding this comment

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

Do you want to maintain this yourself? In this case please add a commit before the current one adding yourself to https://github.com/NixOS/nixpkgs/blob/master/maintainers/maintainer-list.nix.

Copy link
Member Author

Choose a reason for hiding this comment

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

That makes sense, done. Thanks for taking the time to review this PR!

];

meta = with lib; {
homepage = "https://www.gnu.org/software/gnu-pw-mgr/";
Copy link
Member

Choose a reason for hiding this comment

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

no quotes

@qoelet qoelet force-pushed the gnu-pw-mgr branch 4 times, most recently from 28ac83a to bf650d3 Compare July 6, 2018 09:21
@qoelet qoelet force-pushed the gnu-pw-mgr branch 2 times, most recently from 8600b91 to 7150a17 Compare July 6, 2018 09:33
};

buildInputs = [
autogen
Copy link
Contributor

Choose a reason for hiding this comment

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

autogen is not needed to build this, it can be dropped here and above

Copy link
Member Author

Choose a reason for hiding this comment

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

You're right. Updated buildInputs, thanks.

@@ -0,0 +1,20 @@
{ stdenv, lib, fetchurl, autogen, gnulib }:
Copy link
Contributor

Choose a reason for hiding this comment

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

Drop autogen here as well because it is not used anymore.

description = "A password manager designed to make it easy to reconstruct difficult passwords";
license = with licenses; [ gpl3Plus lgpl3Plus ];
platforms = stdenv.lib.platforms.linux;
maintainers = [ ];
Copy link
Contributor

@xeji xeji Jul 6, 2018

Choose a reason for hiding this comment

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

To become a maintainer for this package, add yourself here like this:
maintainers = with maintainers; [ qoelet ];

@xeji
Copy link
Contributor

xeji commented Jul 6, 2018

@GrahamcOfBorg build gnu-pw-mgr

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: gnu-pw-mgr

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: gnu-pw-mgr

Partial log (click to expand)

post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/5x7y9d0wrylyzj6qbgpzv7c1c67mk1si-gnu-pw-mgr-2.3.2
shrinking /nix/store/5x7y9d0wrylyzj6qbgpzv7c1c67mk1si-gnu-pw-mgr-2.3.2/bin/gnu-pw-mgr
shrinking /nix/store/5x7y9d0wrylyzj6qbgpzv7c1c67mk1si-gnu-pw-mgr-2.3.2/bin/sort-pw-cfg
gzipping man pages under /nix/store/5x7y9d0wrylyzj6qbgpzv7c1c67mk1si-gnu-pw-mgr-2.3.2/share/man/
strip is /nix/store/4qvrxzxa535y8304mk195x50b6p9607d-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/5x7y9d0wrylyzj6qbgpzv7c1c67mk1si-gnu-pw-mgr-2.3.2/bin
patching script interpreter paths in /nix/store/5x7y9d0wrylyzj6qbgpzv7c1c67mk1si-gnu-pw-mgr-2.3.2
checking for references to /build in /nix/store/5x7y9d0wrylyzj6qbgpzv7c1c67mk1si-gnu-pw-mgr-2.3.2...
/nix/store/5x7y9d0wrylyzj6qbgpzv7c1c67mk1si-gnu-pw-mgr-2.3.2

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: gnu-pw-mgr

Partial log (click to expand)

post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/53h1gd8i9j5a839qvjk96cflw3lsyb3x-gnu-pw-mgr-2.3.2
shrinking /nix/store/53h1gd8i9j5a839qvjk96cflw3lsyb3x-gnu-pw-mgr-2.3.2/bin/sort-pw-cfg
shrinking /nix/store/53h1gd8i9j5a839qvjk96cflw3lsyb3x-gnu-pw-mgr-2.3.2/bin/gnu-pw-mgr
gzipping man pages under /nix/store/53h1gd8i9j5a839qvjk96cflw3lsyb3x-gnu-pw-mgr-2.3.2/share/man/
strip is /nix/store/0pjsgkxz0rp5baycq5sp2s72lrr5q9sg-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/53h1gd8i9j5a839qvjk96cflw3lsyb3x-gnu-pw-mgr-2.3.2/bin
patching script interpreter paths in /nix/store/53h1gd8i9j5a839qvjk96cflw3lsyb3x-gnu-pw-mgr-2.3.2
checking for references to /build in /nix/store/53h1gd8i9j5a839qvjk96cflw3lsyb3x-gnu-pw-mgr-2.3.2...
/nix/store/53h1gd8i9j5a839qvjk96cflw3lsyb3x-gnu-pw-mgr-2.3.2

@xeji
Copy link
Contributor

xeji commented Jul 6, 2018

LGTM. Thank you for contributing to nixpkgs!

@xeji xeji merged commit d868a26 into NixOS:master Jul 6, 2018
@qoelet
Copy link
Member Author

qoelet commented Jul 6, 2018

@xeji @dotlambda thanks for patiently guiding me through this, my little knowledge of Nix grows a bit more!

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

5 participants