diff options
author | Charles Strahan <charles.c.strahan@gmail.com> | 2015-05-27 11:23:04 -0400 |
---|---|---|
committer | Charles Strahan <charles.c.strahan@gmail.com> | 2015-05-27 11:48:05 -0400 |
commit | 15b9fe1fabc8c7478c63e9a908e2c1ff286fc487 (patch) | |
tree | 74f824e3eb59bb335dfb477be0fd739e37e4dab5 /pkgs/applications/editors/heme | |
parent | 4976bcd21825b1608cd0fb86b5b5e643f4edc3b1 (diff) |
heme: new package
A portable and fast console hex editor for unix operating systems.
Diffstat (limited to 'pkgs/applications/editors/heme')
-rw-r--r-- | pkgs/applications/editors/heme/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/applications/editors/heme/default.nix b/pkgs/applications/editors/heme/default.nix new file mode 100644 index 000000000000..092b7ef68656 --- /dev/null +++ b/pkgs/applications/editors/heme/default.nix @@ -0,0 +1,27 @@ +{ stdenv, lib, fetchurl, ncurses }: + +stdenv.mkDerivation rec { + name = "heme-${version}"; + version = "0.4.2"; + src = fetchurl { + url = "http://downloads.sourceforge.net/project/heme/heme/heme-${version}/heme-${version}.tar.gz"; + sha256 = "0wsrnj5mrlazgqs4252k30aw8m86qw0z9dmrsli9zdxl7j4cg99v"; + }; + postPatch = '' + substituteInPlace Makefile \ + --replace "/usr/local" "$out" \ + --replace "CFLAGS = " "CFLAGS = -I${ncurses}/include " \ + --replace "LDFLAGS = " "LDFLAGS = -L${ncurses}/lib " + ''; + preBuild = '' + mkdir -p $out/bin + mkdir -p $out/man/man1 + ''; + meta = with lib; { + description = "Portable and fast console hex editor for unix operating systems"; + homepage = "http://heme.sourceforge.net/"; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = with maintainers; [ cstrahan ]; + }; +} |