about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMon Aaraj <mon.aaraj815@gmail.com>2022-08-26 06:29:58 +0300
committerMon Aaraj <mon.aaraj815@gmail.com>2022-08-26 06:32:47 +0300
commitffd99e79b3c05b4ff5a0a5d09657c87c6eb16a3b (patch)
tree92ebf1b74bb8714037076aa70b9edccdf2a4e9fd
parent7254e90c6514f7348ee9d832bea75aba87d9abda (diff)
tessen: init at unstable-2022-08-04
-rw-r--r--pkgs/tools/security/tessen/default.nix49
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/tools/security/tessen/default.nix b/pkgs/tools/security/tessen/default.nix
new file mode 100644
index 0000000000000..3e3a165c05bf2
--- /dev/null
+++ b/pkgs/tools/security/tessen/default.nix
@@ -0,0 +1,49 @@
+{ lib
+, stdenvNoCC
+, fetchFromSourcehut
+, makeWrapper
+, installShellFiles
+, wtype
+, wl-clipboard
+, pass
+, bemenu
+}:
+
+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 ];
+
+  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 = ''
+    installManPage man/*
+    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 ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index b9c5cbccf78a0..7745fc6afec17 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -31058,6 +31058,8 @@ with pkgs;
 
   termtosvg = callPackage ../tools/misc/termtosvg { };
 
+  tessen = callPackage ../tools/security/tessen { };
+
   inherit (callPackage ../applications/graphics/tesseract {
     inherit (darwin.apple_sdk.frameworks) Accelerate CoreGraphics CoreVideo;
   })