tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
rep-gtk: fix build on gcc-14 & modernize
Petr Zahradnik
1 year ago
ca2ba227
babb4e17
+12
-11
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
re
rep-gtk
package.nix
+12
-11
pkgs/by-name/re/rep-gtk/package.nix
···
1
1
{
2
2
lib,
3
3
stdenv,
4
4
-
fetchurl,
4
4
+
fetchFromGitHub,
5
5
autoreconfHook,
6
6
gtk2-x11,
7
7
librep,
···
12
12
pname = "rep-gtk";
13
13
version = "0.90.8.3";
14
14
15
15
-
src = fetchurl {
16
16
-
url = "https://download.tuxfamily.org/librep/rep-gtk/rep-gtk_${finalAttrs.version}.tar.xz";
17
17
-
hash = "sha256-qWV120V5Tu/QVkFylno47y1/7DriZExHjp99VLmf80E=";
15
15
+
src = fetchFromGitHub {
16
16
+
owner = "SawfishWM";
17
17
+
repo = "rep-gtk";
18
18
+
tag = "rep-gtk-${finalAttrs.version}";
19
19
+
hash = "sha256-vEhs7QsQUdeEiHZ6AOri6+SLz3Lq/s6j8rALhY0Xqsc=";
18
20
};
19
21
20
22
nativeBuildInputs = [
···
29
31
];
30
32
31
33
strictDeps = true;
34
34
+
enableParallelBuilding = true;
32
35
33
33
-
env.NIX_CFLAGS_COMPILE = toString (
34
34
-
lib.optionals stdenv.cc.isClang [
35
35
-
"-Wno-error=implicit-function-declaration"
36
36
-
"-Wno-error=int-conversion"
37
37
-
]
38
38
-
);
36
36
+
env.NIX_CFLAGS_COMPILE = toString [
37
37
+
"-Wno-error=implicit-function-declaration"
38
38
+
"-Wno-error=int-conversion"
39
39
+
"-Wno-error=incompatible-pointer-types"
40
40
+
];
39
41
40
42
patchPhase = ''
41
43
sed -e 's|installdir=$(repexecdir)|installdir=$(libdir)/rep|g' -i Makefile.in
···
49
51
platforms = lib.platforms.unix;
50
52
};
51
53
})
52
52
-
# TODO: investigate fetchFromGithub