2015-05-27 17:23:04 +02:00
|
|
|
{ stdenv, lib, fetchurl, ncurses }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "heme";
|
2015-05-27 17:23:04 +02:00
|
|
|
version = "0.4.2";
|
|
|
|
src = fetchurl {
|
2016-02-28 13:07:42 +01:00
|
|
|
url = "mirror://sourceforge/project/heme/heme/heme-${version}/heme-${version}.tar.gz";
|
2015-05-27 17:23:04 +02:00
|
|
|
sha256 = "0wsrnj5mrlazgqs4252k30aw8m86qw0z9dmrsli9zdxl7j4cg99v";
|
|
|
|
};
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace "/usr/local" "$out" \
|
2015-10-05 20:32:54 +02:00
|
|
|
--replace "CFLAGS = " "CFLAGS = -I${ncurses.dev}/include " \
|
2016-02-01 18:16:50 +01:00
|
|
|
--replace "LDFLAGS = " "LDFLAGS = -L${ncurses.out}/lib " \
|
2015-07-09 12:57:41 +02:00
|
|
|
--replace "-lcurses" "-lncurses"
|
2015-05-27 17:23:04 +02:00
|
|
|
'';
|
2015-10-05 20:32:54 +02:00
|
|
|
buildInputs = [ ncurses ];
|
2015-05-27 17:23:04 +02: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 22:03:30 +02:00
|
|
|
homepage = http://heme.sourceforge.net/;
|
2015-05-27 17:23:04 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
};
|
|
|
|
}
|