-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
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
Conversation
@@ -0,0 +1,44 @@ | |||
{ coreutils, makeWrapper, openssl, libcaca, qrencode, fetchFromGitHub, yubikey-manager, python, stdenv, ... }: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...
should be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
sha256 = "0018kqmhg0861r5xkbis2a1rx49gyn0dxcyj05wap5ms7zz69m0m"; | ||
}; | ||
|
||
phases = [ |
There was a problem hiding this comment.
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 = ":";
.
There was a problem hiding this comment.
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; | ||
}; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 :)
c9645ae
to
f075c0c
Compare
thanks for the changes |
@FRidh thanks for the code review 👍 |
Motivation for this change
add package from private repo to upstream
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)