Skip to content

Commit

Permalink
pass-otp: Change oathtool reference into an absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiegley committed Jan 3, 2018
1 parent 6d1a547 commit 29510ca
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkgs/tools/security/pass-otp/default.nix
@@ -1,4 +1,4 @@
{ stdenv, pass, fetchFromGitHub }:
{ stdenv, pass, fetchFromGitHub, oathToolkit }:
stdenv.mkDerivation {
name = "pass-otp";

Expand All @@ -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
Expand Down

0 comments on commit 29510ca

Please sign in to comment.