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
pass-otp: 1.0.0 -> 1.1.0 #36308
pass-otp: 1.0.0 -> 1.1.0 #36308
Conversation
@@ -5,8 +5,8 @@ stdenv.mkDerivation { | |||
src = fetchFromGitHub { | |||
owner = "tadfisher"; | |||
repo = "pass-otp"; | |||
rev = "f2feb3082324a91089782af9b7fbb71d34aa213d"; | |||
sha256 = "0iklvcfgw1320dggdr02lq3bc7xvnd2934l1w9kkjpbsfmhs955c"; | |||
rev = "9edb479405156f5712dd101661b86bd599904e8d"; |
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.
Please release tags here: v1.1.0
: https://github.com/tadfisher/pass-otp/releases
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.
Version should be also part of the name.
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.
Done, thanks!
@GrahamcOfBorg build pass-otp |
Success on x86_64-linux (full log) Partial log (click to expand)
|
Success on x86_64-darwin (full log) Partial log (click to expand)
|
Success on aarch64-linux (full log) Partial log (click to expand)
|
How is this extension supposed to work? https://github.com/tadfisher/pass-otp says {
environment.systemPackages = [ pkgs.pass-otp ];
} But just adding that line doesn't work (for me) because that won't make the Maybe --- a/pkgs/tools/security/pass-otp/default.nix
+++ b/pkgs/tools/security/pass-otp/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, pass, fetchFromGitHub, oathToolkit }:
+{ stdenv, fetchFromGitHub, oathToolkit }:
stdenv.mkDerivation rec {
name = "pass-otp-${version}";
version = "1.1.0";
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
sha256 = "1cgj4zc8fq88n3h6c0vkv9i5al785mdprpgpbv5m22dz9p1wqvbb";
};
- buildInputs = [ pass oathToolkit ];
+ buildInputs = [ oathToolkit ];
patchPhase = ''
sed -i -e 's|OATH=\$(which oathtool)|OATH=${oathToolkit}/bin/oathtool|' otp.bash
diff --git a/tv/5pkgs/simple/pass/default.nix b/tv/5pkgs/simple/pass/default.nix
index ad2afa8e..3b692808 100644
--- a/pkgs/tools/security/pass/default.nix
+++ b/pkgs/tools/security/pass/default.nix
@@ -2,6 +2,8 @@
, coreutils, gnused, getopt, git, tree, gnupg, which, procps, qrencode
, makeWrapper
+, pass-otp
+
, xclip ? null, xdotool ? null, dmenu ? null
, x11Support ? !stdenv.isDarwin
, tombPluginSupport ? false, tomb
@@ -56,6 +58,14 @@ in stdenv.mkDerivation rec {
popd
'') plugins)}
+ ln -s \
+ ${pass-otp}/lib/password-store/extensions/otp.bash \
+ $out/lib/password-store/extensions/
+
+ ln -s \
+ ${pass-otp}/share/man/man1/pass-otp.1.gz \
+ $out/share/man/man1/
+
# Install Emacs Mode. NOTE: We can't install the necessary
# dependencies (s.el and f.el) here. The user has to do this
# himself. Alternatively (This question should probably be an issue at https://github.com/tadfisher/pass-otp, but then the above diff wouldn't make sense.) |
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)