Skip to content

gen-oath-safe: init at 2017-01-23 #27002

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

Merged
merged 1 commit into from
Jul 1, 2017
Merged

Conversation

makefu
Copy link
Contributor

@makefu makefu commented Jul 1, 2017

Motivation for this change

add package from private repo to upstream

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
    • Linux
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • [N/A] 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.

Sorry, something went wrong.

@@ -0,0 +1,44 @@
{ coreutils, makeWrapper, openssl, libcaca, qrencode, fetchFromGitHub, yubikey-manager, python, stdenv, ... }:
Copy link
Member

Choose a reason for hiding this comment

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

... should be removed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

sha256 = "0018kqmhg0861r5xkbis2a1rx49gyn0dxcyj05wap5ms7zz69m0m";
};

phases = [
Copy link
Member

Choose a reason for hiding this comment

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

Don't do this. There's no reason for it and it may break things. If you do not need a phase, just write something like buildPhase = ":";.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure what the difference should be as buildPhase = ":"; may also override behavior in the future which could break the build. Newly introduced phases may also break the build.
if explicitly setting phases is deemed as a bad practice then it might be a good idea to add the recommendation somewhere in the nixpkgs manual.

Nevertheless i will change the package build according to your recommendations.

description = "Script for generating HOTP/TOTP keys (and QR code)";
platforms = platforms.unix;
license = licenses.mit;
};
Copy link
Member

Choose a reason for hiding this comment

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

are you going to maintain this package?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep, just forgot to add myself to the list of maintainers :)

Verified

This commit was signed with the committer’s verified signature. The key has expired.
infinisil Silvan Mosberger
@makefu makefu force-pushed the pkgs/gen-oath-safe/init branch from c9645ae to f075c0c Compare July 1, 2017 16:05
@FRidh FRidh merged commit a20dbcb into NixOS:master Jul 1, 2017
@FRidh
Copy link
Member

FRidh commented Jul 1, 2017

thanks for the changes

@makefu
Copy link
Contributor Author

makefu commented Jul 1, 2017

@FRidh thanks for the code review 👍

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

Successfully merging this pull request may close these issues.

None yet

3 participants