mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 12:04:40 +00:00

After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
73 lines
1.8 KiB
Nix
73 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
ncurses,
|
|
xmlto,
|
|
docbook_xml_dtd_44,
|
|
docbook_xsl,
|
|
installShellFiles,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "vms-empire";
|
|
version = "1.18";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.catb.org/~esr/vms-empire/vms-empire-${finalAttrs.version}.tar.gz";
|
|
hash = "sha256-JWCmrGS4jClSi6MCcGNiq8zUH+92fiqMtk58B+wMKQk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
xmlto
|
|
docbook_xml_dtd_44
|
|
docbook_xsl
|
|
];
|
|
|
|
buildInputs = [
|
|
ncurses
|
|
];
|
|
|
|
outputs = [
|
|
"out"
|
|
"doc"
|
|
"man"
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
postBuild = ''
|
|
xmlto man vms-empire.xml
|
|
xmlto html-nochunks vms-empire.xml
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -D vms-empire -t ${placeholder "out"}/bin/
|
|
install -D vms-empire.html -t ${placeholder "doc"}/share/doc/vms-empire/
|
|
install -D vms-empire.desktop -t ${placeholder "out"}/share/applications/
|
|
install -D vms-empire.png -t ${placeholder "out"}/share/icons/hicolor/48x48/apps/
|
|
install -D vms-empire.xml -t ${placeholder "out"}/share/appdata/
|
|
installManPage empire.6
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "http://catb.org/~esr/vms-empire/";
|
|
description = "Ancestor of all expand/explore/exploit/exterminate games";
|
|
longDescription = ''
|
|
Empire is a simulation of a full-scale war between two emperors, the
|
|
computer and you. Naturally, there is only room for one, so the object of
|
|
the game is to destroy the other. The computer plays by the same rules
|
|
that you do. This game was ancestral to all later
|
|
expand/explore/exploit/exterminate games, including Civilization and
|
|
Master of Orion.
|
|
'';
|
|
license = lib.licenses.gpl2Only;
|
|
mainProgram = "vms-empire";
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|