53 lines
1.3 KiB
Nix
53 lines
1.3 KiB
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchFromSourcehut
|
|
, makeWrapper
|
|
, installShellFiles
|
|
, wtype
|
|
, wl-clipboard
|
|
, pass
|
|
, bemenu
|
|
, scdoc
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "tessen";
|
|
version = "unstable-2022-08-04";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~ayushnix";
|
|
repo = pname;
|
|
rev = "8758a09345f6eef24764de4a0efad737f12562c8";
|
|
sha256 = "sha256-U6obXpYzIprOJ+b3QiE+eDOq1s0DYiwM55qTga9/8TE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper installShellFiles scdoc ];
|
|
|
|
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 = ''
|
|
scdoc < man/tessen.1.scd > man/tessen.1
|
|
scdoc < man/tessen.5.scd > man/tessen.5
|
|
installManPage man/*.{1,5}
|
|
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 ];
|
|
};
|
|
}
|