2015-05-27 15:23:04 +00:00
|
|
|
{ stdenv, lib, fetchurl, ncurses }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "heme-${version}";
|
|
|
|
version = "0.4.2";
|
|
|
|
src = fetchurl {
|
2016-02-28 12:07:42 +00:00
|
|
|
url = "mirror://sourceforge/project/heme/heme/heme-${version}/heme-${version}.tar.gz";
|
2015-05-27 15:23:04 +00:00
|
|
|
sha256 = "0wsrnj5mrlazgqs4252k30aw8m86qw0z9dmrsli9zdxl7j4cg99v";
|
|
|
|
};
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace "/usr/local" "$out" \
|
2015-10-05 18:32:54 +00:00
|
|
|
--replace "CFLAGS = " "CFLAGS = -I${ncurses.dev}/include " \
|
2016-02-01 17:16:50 +00:00
|
|
|
--replace "LDFLAGS = " "LDFLAGS = -L${ncurses.out}/lib " \
|
2015-07-09 10:57:41 +00:00
|
|
|
--replace "-lcurses" "-lncurses"
|
2015-05-27 15:23:04 +00:00
|
|
|
'';
|
2015-10-05 18:32:54 +00:00
|
|
|
buildInputs = [ ncurses ];
|
2015-05-27 15:23:04 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|