2018-03-09 17:18:03 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, fetchpatch, ncurses }:
|
2015-05-27 03:32:33 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "hexcurse";
|
2017-03-04 00:00:46 +01:00
|
|
|
version = "1.60.0";
|
|
|
|
|
2015-05-27 03:32:33 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LonnyGomes";
|
|
|
|
repo = "hexcurse";
|
2017-03-04 00:00:46 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "17ckkxfzbqvvfdnh10if4aqdcq98q3vl6dn1v6f4lhr4ifnyjdlk";
|
2015-05-27 03:32:33 +02:00
|
|
|
};
|
2017-03-04 00:00:46 +01:00
|
|
|
buildInputs = [ ncurses ];
|
2019-11-03 13:20:38 +01:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-Wno-error=stringop-overflow" "-Wno-error=stringop-truncation" ];
|
2018-03-09 17:18:03 +01:00
|
|
|
patches = [
|
|
|
|
# gcc7 compat
|
|
|
|
(fetchpatch {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "https://github.com/LonnyGomes/hexcurse/commit/d808cb7067d1df067f8b707fabbfaf9f8931484c.patch";
|
2018-03-09 17:18:03 +01:00
|
|
|
sha256 = "0h8345blmc401c6bivf0imn4cwii67264yrzxg821r46wrnfvyi2";
|
|
|
|
})
|
|
|
|
# gcc7 compat
|
|
|
|
(fetchpatch {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "https://github.com/LonnyGomes/hexcurse/commit/716b5d58ac859cc240b8ccb9cbd79ace3e0593c1.patch";
|
2018-03-09 17:18:03 +01:00
|
|
|
sha256 = "0v6gbp6pjpmnzswlf6d97aywiy015g3kcmfrrkspsbb7lh1y3nix";
|
|
|
|
})
|
|
|
|
];
|
2019-11-03 13:20:38 +01:00
|
|
|
|
2015-05-27 03:32:33 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "ncurses-based console hexeditor written in C";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/LonnyGomes/hexcurse";
|
2015-05-27 03:32:33 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
};
|
|
|
|
}
|