summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/editors/dit
diff options
context:
space:
mode:
authordavidak <git@davidak.de>2018-04-10 06:28:02 +0200
committerdavidak <git@davidak.de>2018-04-11 15:15:07 +0200
commit67206c90a80e313867665482d86a015772394c0f (patch)
treeb1adaf37cf553f8cbd6a718ec2919c3583eace54 /pkgs/applications/editors/dit
parent1034aa8e9cb88dc21e5ab646f2e72a45a9294038 (diff)
dit: init at 0.4
Diffstat (limited to 'pkgs/applications/editors/dit')
-rw-r--r--pkgs/applications/editors/dit/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/applications/editors/dit/default.nix b/pkgs/applications/editors/dit/default.nix
new file mode 100644
index 000000000000..03c3c5d5eec6
--- /dev/null
+++ b/pkgs/applications/editors/dit/default.nix
@@ -0,0 +1,30 @@
+{ lib, fetchurl, stdenv, coreutils, ncurses, lua }:
+
+stdenv.mkDerivation rec {
+ name = "dit-${version}";
+ version = "0.4";
+
+ src = fetchurl {
+ url = "https://hisham.hm/dit/releases/${version}/${name}.tar.gz";
+ sha256 = "0bwczbv7annbbpg7bgbsqd5kwypn81sza4v7v99fin94wwmcn784";
+ };
+
+ buildInputs = [ coreutils ncurses lua ];
+
+ prePatch = ''
+ patchShebangs tools/GenHeaders
+ '';
+
+ # needs GNU tail for tail -r
+ postPatch = ''
+ substituteInPlace Prototypes.h --replace 'tail' "$(type -P tail)"
+ '';
+
+ meta = with stdenv.lib; {
+ description = "A console text editor for Unix that you already know how to use";
+ homepage = https://hisham.hm/dit/;
+ license = licenses.gpl2;
+ platforms = with platforms; linux;
+ maintainers = with maintainers; [ davidak ];
+ };
+}