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