From dc1c9fb2512070ecf795efe6731ac1c62399067a Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Tue, 13 Mar 2018 09:08:18 +0100 Subject: [PATCH] noteshrink: init at 0.1.1 --- pkgs/tools/misc/noteshrink/default.nix | 24 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/tools/misc/noteshrink/default.nix diff --git a/pkgs/tools/misc/noteshrink/default.nix b/pkgs/tools/misc/noteshrink/default.nix new file mode 100644 index 00000000000..77c84ab4511 --- /dev/null +++ b/pkgs/tools/misc/noteshrink/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchFromGitHub, python3, imagemagick }: + +with python3.pkgs; + +buildPythonApplication rec { + name = "noteshrink-${version}"; + version = "0.1.1"; + + src = fetchFromGitHub { + owner = "mzucker"; + repo = "noteshrink"; + rev = version; + sha256 = "0xhrvg3d8ffnbbizsrfppcd2y98znvkgxjdmvbvin458m2rwccka"; + }; + + propagatedBuildInputs = [ numpy scipy imagemagick pillow ]; + + meta = with stdenv.lib; { + description = "Convert scans of handwritten notes to beautiful, compact PDFs"; + homepage = https://mzucker.github.io/2016/09/20/noteshrink.html; + license = licenses.mit; + maintainers = with maintainers; [ rnhmjoj ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4a72fdd669a..f0c1feb7824 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1308,6 +1308,8 @@ with pkgs; nfdump = callPackage ../tools/networking/nfdump { }; + noteshrink = callPackage ../tools/misc/noteshrink { }; + nrsc5 = callPackage ../applications/misc/nrsc5 { }; onboard = callPackage ../applications/misc/onboard { };