summary refs log tree commit diff
path: root/pkgs/applications/networking/tmpmail
diff options
context:
space:
mode:
authorlegendofmiracles <legendofmiracles@protonmail.com>2021-04-16 20:23:56 +0200
committerlegendofmiracles <legendofmiracles@protonmail.com>2021-04-17 08:51:03 +0200
commit932a4ce6be42efa80601c5ab9879871ccb2d1781 (patch)
treee61e66533f35a056b5d8414eebb789732e652832 /pkgs/applications/networking/tmpmail
parentb77c77debbc6d0f7ce96196748ebd647d0fae5db (diff)
downloadnixpkgs-932a4ce6be42efa80601c5ab9879871ccb2d1781.tar
nixpkgs-932a4ce6be42efa80601c5ab9879871ccb2d1781.tar.gz
nixpkgs-932a4ce6be42efa80601c5ab9879871ccb2d1781.tar.bz2
nixpkgs-932a4ce6be42efa80601c5ab9879871ccb2d1781.tar.lz
nixpkgs-932a4ce6be42efa80601c5ab9879871ccb2d1781.tar.xz
nixpkgs-932a4ce6be42efa80601c5ab9879871ccb2d1781.tar.zst
nixpkgs-932a4ce6be42efa80601c5ab9879871ccb2d1781.zip
tmpmail: init at master
Diffstat (limited to 'pkgs/applications/networking/tmpmail')
-rw-r--r--pkgs/applications/networking/tmpmail/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/applications/networking/tmpmail/default.nix b/pkgs/applications/networking/tmpmail/default.nix
new file mode 100644
index 00000000000..433c6cf6fc2
--- /dev/null
+++ b/pkgs/applications/networking/tmpmail/default.nix
@@ -0,0 +1,33 @@
+{ lib, fetchFromGitHub, stdenvNoCC, w3m, curl, jq, makeWrapper, installShellFiles }:
+
+stdenvNoCC.mkDerivation rec {
+  pname = "tmpmail";
+  version = "unstable-2021-02-10";
+
+   src = fetchFromGitHub {
+    owner = "sdushantha";
+    repo = "tmpmail";
+    rev = "150b32083d36006cf7f496e112715ae12ee87727";
+    sha256 = "sha256-yQ9/UUxBTEXK5z3f+tvVRUzIGrAnrqurQ0x56Ad7RKE=";
+  };
+
+  dontConfigure = true;
+
+  dontBuild = true;
+
+  nativeBuildInputs = [ makeWrapper installShellFiles ];
+
+  installPhase = ''
+    mkdir -p $out/bin
+    install -Dm755 -t $out/bin tmpmail
+    installManPage tmpmail.1
+    wrapProgram $out/bin/tmpmail --prefix PATH : ${lib.makeBinPath [ w3m curl jq ]}
+  '';
+
+   meta = with lib; {
+    homepage = "https://github.com/sdushantha/tmpmail";
+    description = "A temporary email right from your terminal written in POSIX sh ";
+    license = licenses.mit;
+    maintainers = [ maintainers.legendofmiracles ];
+  };
+}