2021-11-23 23:30:19 +01:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, ncurses }:
|
2015-05-27 17:47:18 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "bviplus";
|
2020-01-20 05:23:13 +01:00
|
|
|
version = "1.0";
|
2016-02-07 17:06:56 +01:00
|
|
|
|
2015-05-27 17:47:18 +02:00
|
|
|
src = fetchurl {
|
2016-02-07 17:06:56 +01:00
|
|
|
url = "mirror://sourceforge/project/bviplus/bviplus/${version}/bviplus-${version}.tgz";
|
2020-01-20 05:23:13 +01:00
|
|
|
sha256 = "08q2fdyiirabbsp5qpn3v8jxp4gd85l776w6gqvrbjwqa29a8arg";
|
2015-05-27 17:47:18 +02:00
|
|
|
};
|
2016-02-07 17:06:56 +01:00
|
|
|
|
2021-11-23 23:30:19 +01: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 17:47:18 +02:00
|
|
|
buildInputs = [
|
|
|
|
ncurses
|
|
|
|
];
|
2016-02-07 17:06:56 +01:00
|
|
|
|
2019-10-27 14:03:25 +01:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2016-02-07 17:06:56 +01:00
|
|
|
|
2016-06-23 21:09:00 +02:00
|
|
|
buildFlags = [ "CFLAGS=-fgnu89-inline" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-06-23 21:09:00 +02:00
|
|
|
description = "Ncurses based hex editor with a vim-like interface";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://bviplus.sourceforge.net";
|
2015-05-27 17:47:18 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
};
|
|
|
|
}
|