2015-05-27 16:23:04 +01: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 16:23:04 +01:00
|
|
|
sha256 = "0wsrnj5mrlazgqs4252k30aw8m86qw0z9dmrsli9zdxl7j4cg99v";
|
|
|
|
};
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace "/usr/local" "$out" \
|
2015-10-05 19:32:54 +01: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 11:57:41 +01:00
|
|
|
--replace "-lcurses" "-lncurses"
|
2015-05-27 16:23:04 +01:00
|
|
|
'';
|
2015-10-05 19:32:54 +01:00
|
|
|
buildInputs = [ ncurses ];
|
2015-05-27 16:23:04 +01: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";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://heme.sourceforge.net/;
|
2015-05-27 16:23:04 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
};
|
|
|
|
}
|