From 01bc8773ea6ec77c4466c0785ec70f32954c6cf5 Mon Sep 17 00:00:00 2001 From: aleksana Date: Mon, 21 Oct 2024 15:46:26 +0800 Subject: [PATCH] gweled: unstable-2021-02-11 -> 1.0-beta1 --- pkgs/by-name/gw/gweled/package.nix | 64 ++++++++++++++---------------- 1 file changed, 29 insertions(+), 35 deletions(-) diff --git a/pkgs/by-name/gw/gweled/package.nix b/pkgs/by-name/gw/gweled/package.nix index e2fe7f3a20ae..5263d9adab99 100644 --- a/pkgs/by-name/gw/gweled/package.nix +++ b/pkgs/by-name/gw/gweled/package.nix @@ -1,57 +1,51 @@ { lib, stdenv, - fetchbzr, - gettext, - gtk2, - wrapGAppsHook3, - autoreconfHook, + fetchgit, + meson, + ninja, pkg-config, - libmikmod, - librsvg, - libcanberra-gtk2, - hicolor-icon-theme, + wrapGAppsHook3, + desktop-file-utils, + clutter, + clutter-gtk, + gsound, + libgnome-games-support, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "gweled"; - version = "unstable-2021-02-11"; + version = "1.0-beta1"; - src = fetchbzr { - url = "lp:gweled"; - rev = "108"; - hash = "sha256-rM4dgbYfSrVqZwi+xzKuEtmtjK3HVvqeutmni1vleLo="; + src = fetchgit { + url = "https://git.launchpad.net/gweled"; + rev = "refs/tags/${finalAttrs.version}"; + hash = "sha256-cm1z6l2tfYBFVFcvsnQ6cI3pQDnJMzn6SUC20gnBF5w="; }; - doCheck = false; - - postPatch = '' - substituteInPlace configure.ac --replace "AM_GNU_GETTEXT_VERSION([0.19.8])" "AM_GNU_GETTEXT_VERSION([${gettext.version}])" - ''; - nativeBuildInputs = [ - wrapGAppsHook3 - gettext - autoreconfHook + meson + ninja pkg-config + wrapGAppsHook3 + desktop-file-utils ]; buildInputs = [ - gtk2 - libmikmod - librsvg - hicolor-icon-theme - libcanberra-gtk2 + clutter + clutter-gtk + gsound + libgnome-games-support ]; configureFlags = [ "--disable-setgid" ]; - meta = with lib; { - description = "Bejeweled clone game"; + meta = { + description = "Puzzle game similar to Bejeweled or Diamond Mine"; mainProgram = "gweled"; homepage = "https://gweled.org"; - license = licenses.gpl2Plus; - platforms = platforms.linux; - maintainers = [ ]; + license = lib.licenses.gpl2Plus; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ aleksana ]; }; -} +})