about summary refs log tree commit diff
path: root/pkgs/applications/editors/dit
diff options
context:
space:
mode:
authorDavid Kleuker <davidak@users.noreply.github.com>2019-02-17 16:07:27 +0100
committerRyan Mulligan <ryan@ryantm.com>2019-02-17 07:07:27 -0800
commit2646ce0afe2239cf650c8a77816ebcef39e8d2e7 (patch)
treee2848aefa8781c535458039b091a733e0dd72c25 /pkgs/applications/editors/dit
parente48b3308b534b43d6b261940265bdad192673103 (diff)
dit: 0.4 -> 0.5
* dit: 0.4 -> 0.5

adds darwin support
should work on *BSD

* dit: limit to linux
Diffstat (limited to 'pkgs/applications/editors/dit')
-rw-r--r--pkgs/applications/editors/dit/default.nix14
1 files changed, 6 insertions, 8 deletions
diff --git a/pkgs/applications/editors/dit/default.nix b/pkgs/applications/editors/dit/default.nix
index 33d80a577dbef..12ca7a071406f 100644
--- a/pkgs/applications/editors/dit/default.nix
+++ b/pkgs/applications/editors/dit/default.nix
@@ -1,22 +1,20 @@
-{ fetchurl, stdenv, coreutils, ncurses, lua }:
+{ lib, fetchurl, stdenv, libiconv, ncurses, lua }:
 
 stdenv.mkDerivation rec {
   name = "dit-${version}";
-  version = "0.4";
+  version = "0.5";
 
   src = fetchurl {
     url = "https://hisham.hm/dit/releases/${version}/${name}.tar.gz";
-    sha256 = "0bwczbv7annbbpg7bgbsqd5kwypn81sza4v7v99fin94wwmcn784";
+    sha256 = "05vhr1gl3bb5fg49v84xhmjaqdjw6djampvylw10ydvbpnpvjvjc";
   };
 
-  buildInputs = [ coreutils ncurses lua ];
+  buildInputs = [ ncurses lua ]
+    ++ lib.optional stdenv.isDarwin libiconv;
 
+  # fix paths
   prePatch = ''
     patchShebangs tools/GenHeaders
-  '';
-
-  # needs GNU tail for tail -r
-  postPatch = ''
     substituteInPlace Prototypes.h --replace 'tail' "$(type -P tail)"
   '';