lol

xearth: build fix with gcc 14, refactor (#388565)

authored by

kirillrdy and committed by
GitHub
385be06d 38f45de4

+8 -5
+8 -5
pkgs/by-name/xe/xearth/package.nix
··· 14 14 15 15 src = fetchurl { 16 16 url = "http://xearth.org/${pname}-${version}.tar.gz"; 17 - sha256 = "bcb1407cc35b3f6dd3606b2c6072273b6a912cbd9ed1ae22fb2d26694541309c"; 17 + hash = "sha256-vLFAfMNbP23TYGssYHInO2qRLL2e0a4i+y0maUVBMJw="; 18 18 }; 19 + 20 + postPatch = "sed -i '48i #include <stdlib.h>' gifout.c"; 19 21 20 22 nativeBuildInputs = [ 21 23 imake 22 24 gccmakedep 23 25 ]; 26 + 24 27 buildInputs = [ 25 28 libXt 26 29 libXext ··· 31 34 "BINDIR=bin" 32 35 "MANDIR=man/man1" 33 36 ]; 37 + 34 38 installTargets = [ 35 39 "install" 36 40 "install.man" 37 41 ]; 38 42 39 - meta = with lib; { 43 + meta = { 40 44 description = "sets the X root window to an image of the Earth"; 41 45 mainProgram = "xearth"; 42 46 homepage = "https://xearth.org"; ··· 45 49 correctly shaded for the current position of the Sun. 46 50 By default, xearth updates the displayed image every five minutes. 47 51 ''; 48 - maintainers = [ maintainers.mafo ]; 52 + maintainers = with lib.maintainers; [ mafo ]; 49 53 license = { 50 54 fullName = "xearth license"; 51 55 url = "https://xearth.org/copyright.html"; 52 56 free = true; 53 57 }; 54 - platforms = platforms.unix; 58 + platforms = lib.platforms.unix; 55 59 }; 56 - 57 60 }