git.iko.soy/typeable/nixpkgs
on master help sign in
pass-otp: Change oathtool reference into an absolute path
commit29510ca8fea668e82e6115d9227838504f67866c authorJohn Wiegley <johnw@newartisans.com> dateWed 3 Jan 2018, 15:23 (9 years ago) parent6d1a547
1 file changed+6−2
pkgs/tools/security/pass-otp/default.nix+6−2
pkgs/tools/security/pass-otp/default.nix+6−2
@@ -1,4 +1,4 @@
1−{ stdenv, pass, fetchFromGitHub }:
1+{ stdenv, pass, fetchFromGitHub, oathToolkit }:
22stdenv.mkDerivation {
33 name = "pass-otp";
44
@@ -9,7 +9,11 @@ stdenv.mkDerivation {
99 sha256 = "0iklvcfgw1320dggdr02lq3bc7xvnd2934l1w9kkjpbsfmhs955c";
1010 };
1111
12− buildInputs = [ pass ];
12+ buildInputs = [ pass oathToolkit ];
13+
14+ patchPhase = ''
15+ sed -i -e 's|OATH=\$(which oathtool)|OATH=${oathToolkit}/bin/oathtool|' otp.bash
16+ '';
1317
1418 installPhase = ''
1519 make PREFIX=$out install