mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
ace-of-penguins: modernize
This commit is contained in:
parent
03bd3b6b48
commit
0c5a103217
1 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue