2015-05-27 16:23:04 +01:00
|
|
|
{ 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" \
|
2015-10-05 19:32:54 +01:00
|
|
|
--replace "CFLAGS = " "CFLAGS = -I${ncurses.dev}/include " \
|
|
|
|
--replace "LDFLAGS = " "LDFLAGS = -L${ncurses.lib}/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";
|
|
|
|
homepage = "http://heme.sourceforge.net/";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
};
|
|
|
|
}
|