about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/text/qprint
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/text/qprint')
-rw-r--r--nixpkgs/pkgs/tools/text/qprint/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/text/qprint/default.nix b/nixpkgs/pkgs/tools/text/qprint/default.nix
new file mode 100644
index 000000000000..c0953f69a7f9
--- /dev/null
+++ b/nixpkgs/pkgs/tools/text/qprint/default.nix
@@ -0,0 +1,30 @@
+{ fetchurl, lib, stdenv }:
+
+stdenv.mkDerivation rec {
+  pname = "qprint";
+  version = "1.1";
+
+  src = fetchurl {
+    url = "https://www.fourmilab.ch/webtools/qprint/qprint-${version}.tar.gz";
+    sha256 = "1701cnb1nl84rmcpxzq11w4cyj4385jh3gx4aqxznwf8a4fwmagz";
+  };
+
+  doCheck = true;
+
+  checkTarget = "wringer";
+
+  preInstall = ''
+    mkdir -p $out/bin
+    mkdir -p $out/share/man/man1
+  '';
+
+  meta = {
+    homepage = "https://www.fourmilab.ch/webtools/qprint/";
+    license = lib.licenses.publicDomain;
+    description = "Encode and decode Quoted-Printable files";
+    mainProgram = "qprint";
+    maintainers = [ lib.maintainers.tv ];
+    platforms = lib.platforms.all;
+  };
+
+}