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
{
2
lib,
3
stdenv,
4
-
fetchurl,
5
autoreconfHook,
6
gtk2-x11,
7
librep,
···
12
pname = "rep-gtk";
13
version = "0.90.8.3";
14
15
-
src = fetchurl {
16
-
url = "https://download.tuxfamily.org/librep/rep-gtk/rep-gtk_${finalAttrs.version}.tar.xz";
17
-
hash = "sha256-qWV120V5Tu/QVkFylno47y1/7DriZExHjp99VLmf80E=";
0
0
18
};
19
20
nativeBuildInputs = [
···
29
];
30
31
strictDeps = true;
0
32
33
-
env.NIX_CFLAGS_COMPILE = toString (
34
-
lib.optionals stdenv.cc.isClang [
35
-
"-Wno-error=implicit-function-declaration"
36
-
"-Wno-error=int-conversion"
37
-
]
38
-
);
39
40
patchPhase = ''
41
sed -e 's|installdir=$(repexecdir)|installdir=$(libdir)/rep|g' -i Makefile.in
···
49
platforms = lib.platforms.unix;
50
};
51
})
52
-
# TODO: investigate fetchFromGithub
···
1
{
2
lib,
3
stdenv,
4
+
fetchFromGitHub,
5
autoreconfHook,
6
gtk2-x11,
7
librep,
···
12
pname = "rep-gtk";
13
version = "0.90.8.3";
14
15
+
src = fetchFromGitHub {
16
+
owner = "SawfishWM";
17
+
repo = "rep-gtk";
18
+
tag = "rep-gtk-${finalAttrs.version}";
19
+
hash = "sha256-vEhs7QsQUdeEiHZ6AOri6+SLz3Lq/s6j8rALhY0Xqsc=";
20
};
21
22
nativeBuildInputs = [
···
31
];
32
33
strictDeps = true;
34
+
enableParallelBuilding = true;
35
36
+
env.NIX_CFLAGS_COMPILE = toString [
37
+
"-Wno-error=implicit-function-declaration"
38
+
"-Wno-error=int-conversion"
39
+
"-Wno-error=incompatible-pointer-types"
40
+
];
0
41
42
patchPhase = ''
43
sed -e 's|installdir=$(repexecdir)|installdir=$(libdir)/rep|g' -i Makefile.in
···
51
platforms = lib.platforms.unix;
52
};
53
})
0