nixpkgs/pkgs/applications/editors/bviplus/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, fetchpatch, ncurses }:
stdenv.mkDerivation rec {
pname = "bviplus";
2020-01-20 04:23:13 +00:00
version = "1.0";
src = fetchurl {
url = "mirror://sourceforge/project/bviplus/bviplus/${version}/bviplus-${version}.tgz";
2020-01-20 04:23:13 +00:00
sha256 = "08q2fdyiirabbsp5qpn3v8jxp4gd85l776w6gqvrbjwqa29a8arg";
};
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 = "";
})
];
buildInputs = [
ncurses
];
makeFlags = [ "PREFIX=$(out)" ];
2016-06-23 19:09:00 +00:00
buildFlags = [ "CFLAGS=-fgnu89-inline" ];
meta = with lib; {
2016-06-23 19:09:00 +00:00
description = "Ncurses based hex editor with a vim-like interface";
homepage = "http://bviplus.sourceforge.net";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ cstrahan ];
};
}