From 27367d634760b23ecb2259397bd897a00476c4ac Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Wed, 2 Nov 2016 16:01:50 +0000 Subject: [PATCH 1/2] speedread: init at git-2016-09-21 --- pkgs/applications/misc/speedread/default.nix | 34 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/applications/misc/speedread/default.nix diff --git a/pkgs/applications/misc/speedread/default.nix b/pkgs/applications/misc/speedread/default.nix new file mode 100644 index 0000000000000..7b4c552f9a360 --- /dev/null +++ b/pkgs/applications/misc/speedread/default.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchFromGitHub, perl }: + +stdenv.mkDerivation rec { + version = "git-2016-09-21"; + name = "speedread-${version}"; + + src = fetchFromGitHub { + owner = "pasky"; + repo = "speedread"; + rev = "93acfd61a1bf4482537ce5d71b9164b8446cb6bd"; + sha256 = "1h94jx3v18fdlc64lfmj2g5x63fjyqb8c56k5lihl7bva0xgdkxd"; + }; + + buildInputs = [ perl ]; + + installPhase = '' + mkdir -p $out/bin + mv speedread $out/bin + ''; + + meta = with stdenv.lib; { + description = "A simple terminal-based open source Spritz-alike"; + longDescription = '' + Speedread is a command line filter that shows input text as a + per-word rapid serial visual presentation aligned on optimal + reading points. This allows reading text at a much more rapid + pace than usual as the eye can stay fixed on a single place. + ''; + homepage = src.meta.homepage; + license = licenses.mit; + platforms = platforms.unix; + maintainers = [ maintainers.oxij ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f3a660dc7108b..d6aeebfa7f629 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14605,6 +14605,8 @@ with pkgs; sudolikeaboss = callPackage ../tools/security/sudolikeaboss { }; + speedread = callPackage ../applications/misc/speedread { }; + sup = callPackage ../applications/networking/mailreaders/sup { ruby = ruby_2_3.override { cursesSupport = true; }; }; From 9235c3c26bba928779790ce8eaeb0957bd6f3745 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 6 Mar 2017 11:20:02 +0100 Subject: [PATCH 2/2] speedread: simplify installPhase --- pkgs/applications/misc/speedread/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/misc/speedread/default.nix b/pkgs/applications/misc/speedread/default.nix index 7b4c552f9a360..180b66fda8ce4 100644 --- a/pkgs/applications/misc/speedread/default.nix +++ b/pkgs/applications/misc/speedread/default.nix @@ -1,8 +1,7 @@ { stdenv, fetchFromGitHub, perl }: stdenv.mkDerivation rec { - version = "git-2016-09-21"; - name = "speedread-${version}"; + name = "speedread-unstable-2016-09-21"; src = fetchFromGitHub { owner = "pasky"; @@ -14,8 +13,7 @@ stdenv.mkDerivation rec { buildInputs = [ perl ]; installPhase = '' - mkdir -p $out/bin - mv speedread $out/bin + install -m755 -D speedread $out/bin/speedread ''; meta = with stdenv.lib; {