ace-of-penguins: modernize

This commit is contained in:
Moraxyc 2025-02-23 00:51:28 +08:00
parent 03bd3b6b48
commit 0c5a103217
No known key found for this signature in database

View file

@ -10,12 +10,12 @@
zlib, zlib,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "ace-of-penguins"; pname = "ace-of-penguins";
version = "1.4"; version = "1.4";
src = fetchurl { src = fetchurl {
url = "http://www.delorie.com/store/ace/ace-${version}.tar.gz"; url = "http://www.delorie.com/store/ace/ace-${finalAttrs.version}.tar.gz";
hash = "sha256-H+47BTOSGkKHPAYj8z2HOgZ7HuxY8scMAUSRRueaTM4="; hash = "sha256-H+47BTOSGkKHPAYj8z2HOgZ7HuxY8scMAUSRRueaTM4=";
}; };
@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
desktopItems = desktopItems =
let let
generateItem = gameName: { generateItem = gameName: {
name = "${pname}-${gameName}"; name = "ace-of-penguins-${gameName}";
exec = "${placeholder "out"}/bin/${gameName}"; exec = "${placeholder "out"}/bin/${gameName}";
comment = "Ace of Penguins ${gameName} Card Game"; comment = "Ace of Penguins ${gameName} Card Game";
desktopName = gameName; desktopName = gameName;
@ -64,7 +64,7 @@ stdenv.mkDerivation rec {
"thornq" "thornq"
]; ];
meta = with lib; { meta = {
homepage = "http://www.delorie.com/store/ace/"; homepage = "http://www.delorie.com/store/ace/";
description = "Solitaire games in X11"; description = "Solitaire games in X11";
longDescription = '' longDescription = ''
@ -76,8 +76,8 @@ stdenv.mkDerivation rec {
minesweeper, pegged, solitaire, taipei (with editor!), and thornq (by minesweeper, pegged, solitaire, taipei (with editor!), and thornq (by
Martin Thornquist). Martin Thornquist).
''; '';
license = licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
maintainers = with maintainers; [ ]; maintainers = with lib.maintainers; [ ];
platforms = platforms.linux; platforms = lib.platforms.linux;
}; };
} })