nixpkgs/pkgs/tools/security/tessen/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.3 KiB
Nix
Raw Normal View History

2022-08-26 03:29:58 +00:00
{ lib
, stdenvNoCC
, fetchFromSourcehut
, makeWrapper
, installShellFiles
, wtype
, wl-clipboard
, pass
, bemenu
2022-08-31 16:45:34 +00:00
, scdoc
2022-08-26 03:29:58 +00:00
}:
stdenvNoCC.mkDerivation rec {
pname = "tessen";
2023-05-10 04:36:51 +00:00
version = "2.2.1";
2022-08-26 03:29:58 +00:00
src = fetchFromSourcehut {
owner = "~ayushnix";
repo = pname;
2023-03-25 22:03:08 +00:00
rev = "v${version}";
2023-05-10 04:36:51 +00:00
sha256 = "sha256-8hhYOd5h55kl7ChqdyRzsaxzWLpX41aqG8LfznmbFWw=";
2022-08-26 03:29:58 +00:00
};
2022-08-31 16:45:34 +00:00
nativeBuildInputs = [ makeWrapper installShellFiles scdoc ];
2022-08-26 03:29:58 +00:00
dontBuild = true;
installPhase = ''
runHook preInstall
install -D tessen $out/bin/tessen
wrapProgram $out/bin/tessen --prefix PATH : ${ lib.makeBinPath [ bemenu pass wtype wl-clipboard ] }
runHook postInstall
'';
postInstall = ''
2022-08-31 16:45:34 +00:00
scdoc < man/tessen.1.scd > man/tessen.1
scdoc < man/tessen.5.scd > man/tessen.5
installManPage man/*.{1,5}
2022-08-26 03:29:58 +00:00
installShellCompletion --cmd tessen \
--bash completion/tessen.bash-completion \
--fish completion/tessen.fish-completion
install -Dm644 config $out/share/tessen/config
'';
meta = with lib; {
homepage = "https://sr.ht/~ayushnix/tessen";
description = "An interactive menu to autotype and copy Pass and GoPass data";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ monaaraj ];
};
}