Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
67 lines
1.2 KiB
Nix
67 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
makeDesktopItem,
|
|
ncurses,
|
|
libX11,
|
|
boost,
|
|
cmake,
|
|
}:
|
|
|
|
let
|
|
pname = "tome2";
|
|
description = "Dungeon crawler similar to Angband, based on the works of Tolkien";
|
|
|
|
desktopItem = makeDesktopItem {
|
|
desktopName = pname;
|
|
name = pname;
|
|
exec = "${pname}-x11";
|
|
icon = pname;
|
|
comment = description;
|
|
type = "Application";
|
|
categories = [
|
|
"Game"
|
|
"RolePlaying"
|
|
];
|
|
genericName = pname;
|
|
};
|
|
|
|
in
|
|
stdenv.mkDerivation {
|
|
inherit pname;
|
|
version = "2.4-unstable-2025-02-17";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tome2";
|
|
repo = "tome2";
|
|
rev = "3892fbcb1c2446afcb0c34f59e2a24f78ae672c4";
|
|
hash = "sha256-OL59zktCJGBHPE8Y89S+OdcnJ/Hj+dGif1DNhePEQXo=";
|
|
};
|
|
|
|
buildInputs = [
|
|
ncurses
|
|
libX11
|
|
boost
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
cmakeFlags = [
|
|
"-DSYSTEM_INSTALL=ON"
|
|
];
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/share/applications
|
|
cp ${desktopItem}/share/applications/*.desktop $out/share/applications
|
|
'';
|
|
|
|
meta = with lib; {
|
|
inherit description;
|
|
license = licenses.unfree;
|
|
maintainers = with maintainers; [ cizra ];
|
|
platforms = platforms.all;
|
|
homepage = "https://github.com/tome2/tome2";
|
|
};
|
|
}
|