tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
convertlit: fix build with GCC 14
uku
8 months ago
e15818df
b05094bf
+13
-7
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
co
convertlit
package.nix
+13
-7
pkgs/by-name/co/convertlit/package.nix
···
5
5
libtommath,
6
6
}:
7
7
8
8
-
stdenv.mkDerivation rec {
8
8
+
stdenv.mkDerivation (finalAttrs: {
9
9
pname = "convertlit";
10
10
version = "1.8";
11
11
12
12
src = fetchzip {
13
13
-
url = "http://www.convertlit.com/convertlit${lib.replaceStrings [ "." ] [ "" ] version}src.zip";
13
13
+
url = "http://www.convertlit.com/convertlit${
14
14
+
lib.replaceStrings [ "." ] [ "" ] finalAttrs.version
15
15
+
}src.zip";
14
16
sha256 = "182nsin7qscgbw2h92m0zadh3h8q410h5cza6v486yjfvla3dxjx";
15
17
stripRoot = false;
16
18
};
···
19
21
20
22
hardeningDisable = [ "format" ];
21
23
24
24
+
env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
25
25
+
26
26
+
postPatch = ''
27
27
+
substituteInPlace clit18/Makefile --replace gcc \$\(CC\)
28
28
+
substituteInPlace clit18/Makefile --replace ../libtommath-0.30/libtommath.a -ltommath
29
29
+
'';
30
30
+
22
31
buildPhase = ''
23
32
cd lib
24
33
make
25
34
cd ../clit18
26
26
-
substituteInPlace Makefile \
27
27
-
--replace ../libtommath-0.30/libtommath.a -ltommath
28
35
make
29
36
'';
30
37
31
38
installPhase = ''
32
32
-
mkdir -p $out/bin
33
33
-
cp clit $out/bin
39
39
+
install -Dm755 clit $out/bin/clit
34
40
'';
35
41
36
42
meta = {
···
40
46
license = lib.licenses.gpl2Plus;
41
47
platforms = lib.platforms.linux;
42
48
};
43
43
-
}
49
49
+
})