rep-gtk: fix build on gcc-14 & modernize

+12 -11
+12 -11
pkgs/by-name/re/rep-gtk/package.nix
··· 1 1 { 2 2 lib, 3 3 stdenv, 4 - fetchurl, 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 - src = fetchurl { 16 - url = "https://download.tuxfamily.org/librep/rep-gtk/rep-gtk_${finalAttrs.version}.tar.xz"; 17 - hash = "sha256-qWV120V5Tu/QVkFylno47y1/7DriZExHjp99VLmf80E="; 15 + src = fetchFromGitHub { 16 + owner = "SawfishWM"; 17 + repo = "rep-gtk"; 18 + tag = "rep-gtk-${finalAttrs.version}"; 19 + hash = "sha256-vEhs7QsQUdeEiHZ6AOri6+SLz3Lq/s6j8rALhY0Xqsc="; 18 20 }; 19 21 20 22 nativeBuildInputs = [ ··· 29 31 ]; 30 32 31 33 strictDeps = true; 34 + enableParallelBuilding = true; 32 35 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 - ); 36 + env.NIX_CFLAGS_COMPILE = toString [ 37 + "-Wno-error=implicit-function-declaration" 38 + "-Wno-error=int-conversion" 39 + "-Wno-error=incompatible-pointer-types" 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 - # TODO: investigate fetchFromGithub