pass-otp: 1.1.1 -> 1.2.0

Had to specify `BASHCOMPDIR` in `$out` to keep things pure.
This commit is contained in:
toonn 2019-08-17 19:52:53 +02:00
parent 2240c5c858
commit 5a035ec45f

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "pass-otp-${version}"; name = "pass-otp-${version}";
version = "1.1.1"; version = "1.2.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tadfisher"; owner = "tadfisher";
repo = "pass-otp"; repo = "pass-otp";
rev = "v${version}"; rev = "v${version}";
sha256 = "0m8x5dqwcr9jim530685nsq4zn941hhl7ridmmd63b204z141rwa"; sha256 = "0cpqrf3939hcvwg7sd8055ghc8x964ilimlri16czzx188a9jx9v";
}; };
buildInputs = [ oathToolkit ]; buildInputs = [ oathToolkit ];
@ -19,13 +19,15 @@ stdenv.mkDerivation rec {
sed -i -e 's|OATH=\$(which oathtool)|OATH=${oathToolkit}/bin/oathtool|' otp.bash sed -i -e 's|OATH=\$(which oathtool)|OATH=${oathToolkit}/bin/oathtool|' otp.bash
''; '';
installFlags = [ "PREFIX=$(out)" ]; installFlags = [ "PREFIX=$(out)"
"BASHCOMPDIR=$(out)/share/bash-completion/completions"
];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A pass extension for managing one-time-password (OTP) tokens"; description = "A pass extension for managing one-time-password (OTP) tokens";
homepage = https://github.com/tadfisher/pass-otp; homepage = https://github.com/tadfisher/pass-otp;
license = licenses.gpl3; license = licenses.gpl3;
maintainers = with maintainers; [ jwiegley tadfisher ]; maintainers = with maintainers; [ jwiegley tadfisher toonn ];
platforms = platforms.unix; platforms = platforms.unix;
}; };
} }