From 8b573d01baf907e7dadbdc58da1acf85e5f0efc2 Mon Sep 17 00:00:00 2001
From: figsoda <figsoda@pm.me>
Date: Sat, 27 May 2023 19:04:32 -0400
Subject: [PATCH] encpipe: init at 0.5

https://github.com/jedisct1/encpipe
---
 pkgs/tools/misc/encpipe/default.nix | 28 ++++++++++++++++++++++++++++
 pkgs/top-level/all-packages.nix     |  2 ++
 2 files changed, 30 insertions(+)
 create mode 100644 pkgs/tools/misc/encpipe/default.nix

diff --git a/pkgs/tools/misc/encpipe/default.nix b/pkgs/tools/misc/encpipe/default.nix
new file mode 100644
index 000000000000..d8eea00c3107
--- /dev/null
+++ b/pkgs/tools/misc/encpipe/default.nix
@@ -0,0 +1,28 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+}:
+
+stdenv.mkDerivation rec {
+  pname = "encpipe";
+  version = "0.5";
+
+  src = fetchFromGitHub {
+    owner = "jedisct1";
+    repo = "encpipe";
+    rev = version;
+    hash = "sha256-YlEKSWzZuQyDi0mbwJh9Dfn4gKiOeqihSHPt4yY6YdY=";
+    fetchSubmodules = true;
+  };
+
+  installFlags = [
+    "PREFIX=$(out)"
+  ];
+
+  meta = with lib; {
+    description = "An encryption tool";
+    homepage = "https://github.com/jedisct1/encpipe";
+    license = licenses.isc;
+    maintainers = with maintainers; [ figsoda ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 0a83fb9b495c..65db1ccbe94f 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -4772,6 +4772,8 @@ with pkgs;
 
   enca = callPackage ../tools/text/enca { };
 
+  encpipe = callPackage ../tools/misc/encpipe { };
+
   engage = callPackage ../tools/misc/engage { };
 
   ent = callPackage ../tools/misc/ent { };