diff options
author | John Wiegley <johnw@newartisans.com> | 2018-01-03 15:23:14 -0800 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2018-01-03 15:31:27 -0800 |
commit | 29510ca8fea668e82e6115d9227838504f67866c (patch) | |
tree | 8918440fa1c5e162023197842e6e5950b7813851 /pkgs/tools/security/pass-otp | |
parent | 6d1a547b8df4fa7c7b79b3507ddea897ac32058b (diff) | |
download | nixpkgs-29510ca8fea668e82e6115d9227838504f67866c.tar nixpkgs-29510ca8fea668e82e6115d9227838504f67866c.tar.gz nixpkgs-29510ca8fea668e82e6115d9227838504f67866c.tar.bz2 nixpkgs-29510ca8fea668e82e6115d9227838504f67866c.tar.lz nixpkgs-29510ca8fea668e82e6115d9227838504f67866c.tar.xz nixpkgs-29510ca8fea668e82e6115d9227838504f67866c.tar.zst nixpkgs-29510ca8fea668e82e6115d9227838504f67866c.zip |
pass-otp: Change oathtool reference into an absolute path
Diffstat (limited to 'pkgs/tools/security/pass-otp')
-rw-r--r-- | pkgs/tools/security/pass-otp/default.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/tools/security/pass-otp/default.nix b/pkgs/tools/security/pass-otp/default.nix index 70350f669e9..327a9680f98 100644 --- a/pkgs/tools/security/pass-otp/default.nix +++ b/pkgs/tools/security/pass-otp/default.nix @@ -1,4 +1,4 @@ -{ stdenv, pass, fetchFromGitHub }: +{ stdenv, pass, fetchFromGitHub, oathToolkit }: stdenv.mkDerivation { name = "pass-otp"; @@ -9,7 +9,11 @@ stdenv.mkDerivation { sha256 = "0iklvcfgw1320dggdr02lq3bc7xvnd2934l1w9kkjpbsfmhs955c"; }; - buildInputs = [ pass ]; + buildInputs = [ pass oathToolkit ]; + + patchPhase = '' + sed -i -e 's|OATH=\$(which oathtool)|OATH=${oathToolkit}/bin/oathtool|' otp.bash + ''; installPhase = '' make PREFIX=$out install |