From d9e7940c1c25da17d5c10c0befaee3ebbb6298b1 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Sun, 1 Dec 2024 14:14:03 +0100 Subject: [PATCH] xsnow: 3.4.4 -> 3.7.9 (cherry picked from commit 2995a17c25fe44cf04f0857b2eeee98950e317a5) --- pkgs/by-name/xs/xsnow/package.nix | 42 +++++++++++++++++++++++++------ 1 file changed, 35 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/xs/xsnow/package.nix b/pkgs/by-name/xs/xsnow/package.nix index ba9791cc6f1a3e..a94ad14e8364d3 100644 --- a/pkgs/by-name/xs/xsnow/package.nix +++ b/pkgs/by-name/xs/xsnow/package.nix @@ -1,16 +1,39 @@ -{ lib, stdenv, fetchurl, pkg-config, libxml2, gtk3-x11, libXt, libXpm }: - +{ + lib, + stdenv, + fetchurl, + pkg-config, + libxml2, + wrapGAppsHook3, + gtk3-x11, + xorg, + libxkbcommon, + gsl, +}: stdenv.mkDerivation rec { pname = "xsnow"; - version = "3.4.4"; + version = "3.7.9"; src = fetchurl { url = "https://ratrabbit.nl/downloads/xsnow/xsnow-${version}.tar.gz"; - sha256 = "sha256-fPMy5AxKspFkcWphf/IjMc/ZQtayljThKxbcMtvOjRc="; + sha256 = "sha256-DEzQblUfm2kd0I21sUwO3EVUm/WHnOk7T6iMgo3+EAY="; }; - nativeBuildInputs = [ pkg-config ]; - buildInputs = [ gtk3-x11 libxml2 libXt libXpm ]; + nativeBuildInputs = [ + pkg-config + wrapGAppsHook3 + ]; + buildInputs = [ + gtk3-x11 + libxkbcommon + libxml2 + gsl + ] ++ (with xorg; [ + libX11 + libXpm + libXt + libXtst + ]); makeFlags = [ "gamesdir=$(out)/bin" ]; @@ -20,8 +43,13 @@ stdenv.mkDerivation rec { description = "X-windows application that will let it snow on the root, in between and on windows"; mainProgram = "xsnow"; homepage = "https://ratrabbit.nl/ratrabbit/xsnow/"; + changelog = "https://ratrabbit.nl/ratrabbit/xsnow/changelog/index.html"; + downloadPage = "https://ratrabbit.nl/ratrabbit/xsnow/downloads/index.html"; license = licenses.gpl3Plus; - maintainers = with maintainers; [ robberer ]; + maintainers = with maintainers; [ + robberer + griffi-gh + ]; platforms = platforms.unix; }; }