summary refs log tree commit diff
path: root/pkgs/applications/editors
diff options
context:
space:
mode:
authorJoachim Schiele <js@lastlog.de>2013-07-31 15:20:23 +0000
committerJoachim Schiele <js@lastlog.de>2013-07-31 15:20:23 +0000
commitafbc5cd5e90087713d8191c2ea0740ed1fbaa557 (patch)
tree07cb386807b0e5b4c3a67c2f07058b61da513edc /pkgs/applications/editors
parent2e57a1621921233ffe65255033b8eef27efba66b (diff)
downloadnixlib-afbc5cd5e90087713d8191c2ea0740ed1fbaa557.tar
nixlib-afbc5cd5e90087713d8191c2ea0740ed1fbaa557.tar.gz
nixlib-afbc5cd5e90087713d8191c2ea0740ed1fbaa557.tar.bz2
nixlib-afbc5cd5e90087713d8191c2ea0740ed1fbaa557.tar.lz
nixlib-afbc5cd5e90087713d8191c2ea0740ed1fbaa557.tar.xz
nixlib-afbc5cd5e90087713d8191c2ea0740ed1fbaa557.tar.zst
nixlib-afbc5cd5e90087713d8191c2ea0740ed1fbaa557.zip
added dhex, a nice ncurses based hex editor for the shell
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r--pkgs/applications/editors/dhex/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/editors/dhex/default.nix b/pkgs/applications/editors/dhex/default.nix
new file mode 100644
index 000000000000..45b7de900e26
--- /dev/null
+++ b/pkgs/applications/editors/dhex/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchurl, ncurses }:
+
+stdenv.mkDerivation rec {
+  name = "dhex-${version}";
+  version = "0.68";
+
+  src = fetchurl {
+    url = "http://www.dettus.net/dhex/dhex_${version}.tar.gz";
+    sha256 = "126c34745b48a07448cfe36fe5913d37ec562ad72d3f732b99bd40f761f4da08";
+  };
+
+  buildInputs = [ ncurses ];
+ 
+  installPhase = ''
+    ensureDir $out/bin
+    ensureDir $out/share/man/man1
+    ensureDir $out/share/man/man5
+
+    cp dhex $out/bin
+    cp dhex.1 $out/share/man/man1
+    cp dhexrc.5 $out/share/man/man5
+    cp dhex_markers.5 $out/share/man/man5
+    cp dhex_searchlog.5 $out/share/man/man5
+  '';
+
+  meta = {
+    description = "A themeable hex editor with diff mode";
+    homepage = http://www.dettus.net/dhex/;
+    license = stdenv.lib.licenses.gpl2;
+    maintainers = with stdenv.lib.maintainers; [qknight];
+  };
+}