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