tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
fileshare: fix build with GCC 14, misc. cleanup
FliegendeWurst
1 year ago
93262df2
f28864e0
+11
-4
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
fi
fileshare
package.nix
+11
-4
pkgs/by-name/fi/fileshare/package.nix
···
1
1
{
2
2
stdenv,
3
3
lib,
4
4
-
fetchgit,
4
4
+
fetchFromGitea,
5
5
pkg-config,
6
6
git,
7
7
libmicrohttpd,
···
11
11
pname = "fileshare";
12
12
version = "0.2.4";
13
13
14
14
-
src = fetchgit {
15
15
-
url = "https://git.tkolb.de/Public/fileshare.git";
14
14
+
src = fetchFromGitea {
15
15
+
domain = "git.tkolb.de";
16
16
+
owner = "Public";
17
17
+
repo = "fileshare";
16
18
rev = "v${version}";
17
17
-
sha256 = "03jrhk4vj6bc2w3lsrfjpfflb4laihysgs5i4cv097nr5cz32hyk";
19
19
+
sha256 = "sha256-00MxPivZngQ2I7Hopz2MipJFnbvSZU0HF2wZucmEWQ4=";
18
20
};
19
21
20
22
postPatch = ''
21
23
sed -i 's,$(shell git rev-parse --short HEAD),/${version},g' Makefile
24
24
+
substituteInPlace Makefile \
25
25
+
--replace-fail pkg-config "${stdenv.cc.targetPrefix}pkg-config" \
26
26
+
--replace-fail gcc "${stdenv.cc.targetPrefix}cc"
22
27
'';
28
28
+
29
29
+
env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
23
30
24
31
nativeBuildInputs = [
25
32
pkg-config