3
0
Fork 0
forked from mirrors/nixpkgs

pass-otp: Change oathtool reference into an absolute path

This commit is contained in:
John Wiegley 2018-01-03 15:23:14 -08:00
parent 6d1a547b8d
commit 29510ca8fe

View file

@ -1,4 +1,4 @@
{ stdenv, pass, fetchFromGitHub }: { stdenv, pass, fetchFromGitHub, oathToolkit }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "pass-otp"; name = "pass-otp";
@ -9,7 +9,11 @@ stdenv.mkDerivation {
sha256 = "0iklvcfgw1320dggdr02lq3bc7xvnd2934l1w9kkjpbsfmhs955c"; sha256 = "0iklvcfgw1320dggdr02lq3bc7xvnd2934l1w9kkjpbsfmhs955c";
}; };
buildInputs = [ pass ]; buildInputs = [ pass oathToolkit ];
patchPhase = ''
sed -i -e 's|OATH=\$(which oathtool)|OATH=${oathToolkit}/bin/oathtool|' otp.bash
'';
installPhase = '' installPhase = ''
make PREFIX=$out install make PREFIX=$out install