2021-11-23 22:30:19 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, ncurses }:
|
2015-05-27 15:47:18 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "bviplus";
|
2020-01-20 04:23:13 +00:00
|
|
|
version = "1.0";
|
2016-02-07 16:06:56 +00:00
|
|
|
|
2015-05-27 15:47:18 +00:00
|
|
|
src = fetchurl {
|
2016-02-07 16:06:56 +00:00
|
|
|
url = "mirror://sourceforge/project/bviplus/bviplus/${version}/bviplus-${version}.tgz";
|
2020-01-20 04:23:13 +00:00
|
|
|
sha256 = "08q2fdyiirabbsp5qpn3v8jxp4gd85l776w6gqvrbjwqa29a8arg";
|
2015-05-27 15:47:18 +00:00
|
|
|
};
|
2016-02-07 16:06:56 +00:00
|
|
|
|
2021-11-23 22:30:19 +00:00
|
|
|
patches = [
|
|
|
|
# Fix pending upstream inclusion for ncurses-6.3 support:
|
|
|
|
# https://sourceforge.net/p/bviplus/bugs/7/
|
|
|
|
(fetchpatch {
|
|
|
|
name = "ncurses-6.3.patch";
|
|
|
|
url = "https://sourceforge.net/p/bviplus/bugs/7/attachment/bviplus-ncurses-6.2.patch";
|
|
|
|
sha256 = "1g3s2fdly3qliy67f3dlb12a03a21zkjbya6gap4mqxhyyjbp46x";
|
|
|
|
# svn patch, rely on prefix added by fetchpatch:
|
|
|
|
extraPrefix = "";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2015-05-27 15:47:18 +00:00
|
|
|
buildInputs = [
|
|
|
|
ncurses
|
|
|
|
];
|
2016-02-07 16:06:56 +00:00
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2016-02-07 16:06:56 +00:00
|
|
|
|
2016-06-23 19:09:00 +00:00
|
|
|
buildFlags = [ "CFLAGS=-fgnu89-inline" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-06-23 19:09:00 +00:00
|
|
|
description = "Ncurses based hex editor with a vim-like interface";
|
2023-02-19 20:43:38 +00:00
|
|
|
homepage = "https://bviplus.sourceforge.net";
|
2015-05-27 15:47:18 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2023-09-29 18:19:55 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "bviplus";
|
2015-05-27 15:47:18 +00:00
|
|
|
};
|
|
|
|
}
|