bviplus: modernize

+10 -14
+10 -14
pkgs/by-name/bv/bviplus/package.nix
··· 6 ncurses, 7 }: 8 9 - stdenv.mkDerivation rec { 10 pname = "bviplus"; 11 version = "1.0"; 12 13 src = fetchurl { 14 - url = "mirror://sourceforge/project/bviplus/bviplus/${version}/bviplus-${version}.tgz"; 15 - sha256 = "08q2fdyiirabbsp5qpn3v8jxp4gd85l776w6gqvrbjwqa29a8arg"; 16 }; 17 18 patches = [ ··· 21 (fetchpatch { 22 name = "ncurses-6.3.patch"; 23 url = "https://sourceforge.net/p/bviplus/bugs/7/attachment/bviplus-ncurses-6.2.patch"; 24 - sha256 = "1g3s2fdly3qliy67f3dlb12a03a21zkjbya6gap4mqxhyyjbp46x"; 25 # svn patch, rely on prefix added by fetchpatch: 26 extraPrefix = ""; 27 }) 28 ]; 29 30 - buildInputs = [ 31 - ncurses 32 - ]; 33 34 makeFlags = [ "PREFIX=$(out)" ]; 35 36 - buildFlags = [ "CFLAGS=-fgnu89-inline" ]; 37 - 38 - env.NIX_CFLAGS_COMPILE = "-Wno-implicit-int"; 39 40 - meta = with lib; { 41 description = "Ncurses based hex editor with a vim-like interface"; 42 homepage = "https://bviplus.sourceforge.net"; 43 - license = licenses.gpl3; 44 - platforms = platforms.linux; 45 maintainers = [ ]; 46 mainProgram = "bviplus"; 47 }; 48 - }
··· 6 ncurses, 7 }: 8 9 + stdenv.mkDerivation (finalAttrs: { 10 pname = "bviplus"; 11 version = "1.0"; 12 13 src = fetchurl { 14 + url = "mirror://sourceforge/project/bviplus/bviplus/${finalAttrs.version}/bviplus-${finalAttrs.version}.tgz"; 15 + hash = "sha256-LyukklCYy5U3foabc2hB7ZHbJdrDXlyuXkvlGH1zAiM="; 16 }; 17 18 patches = [ ··· 21 (fetchpatch { 22 name = "ncurses-6.3.patch"; 23 url = "https://sourceforge.net/p/bviplus/bugs/7/attachment/bviplus-ncurses-6.2.patch"; 24 + hash = "sha256-3ZC7pPew40quekb5JecPQg2gRFi0DXeMjxQPT5sTerw="; 25 # svn patch, rely on prefix added by fetchpatch: 26 extraPrefix = ""; 27 }) 28 ]; 29 30 + buildInputs = [ ncurses ]; 31 32 makeFlags = [ "PREFIX=$(out)" ]; 33 34 + env.NIX_CFLAGS_COMPILE = "-Wno-implicit-int -fgnu89-inline"; 35 36 + meta = { 37 description = "Ncurses based hex editor with a vim-like interface"; 38 homepage = "https://bviplus.sourceforge.net"; 39 + license = lib.licenses.gpl3; 40 + platforms = lib.platforms.linux; 41 maintainers = [ ]; 42 mainProgram = "bviplus"; 43 }; 44 + })