Files
nixpkgs/pkgs/by-name/dn/dnd-tools/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

40 lines
1.0 KiB
Nix

{
python3,
fetchFromGitHub,
fetchpatch,
lib,
}:
python3.pkgs.buildPythonApplication {
pname = "dnd-tools";
version = "0-unstable-2021-02-18";
format = "pyproject";
src = fetchFromGitHub {
owner = "savagezen";
repo = "dnd-tools";
rev = "baefb9e4b4b8279be89ec63d256dde9704dee078";
sha256 = "1rils3gzbfmwvgy51ah77qihwwbvx50q82lkc1kwcb55b3yinnmj";
};
# gives warning every time unless patched, see https://github.com/savagezen/dnd-tools/pull/20
patches = [
(fetchpatch {
url = "https://github.com/savagezen/dnd-tools/commit/0443f3a232056ad67cfb09eb3eadcb6344659198.patch";
sha256 = "00k8rsz2aj4sfag6l313kxbphcb5bjxb6z3aw66h26cpgm4kysp0";
})
];
build-system = with python3.pkgs; [
setuptools
];
meta = with lib; {
homepage = "https://github.com/savagezen/dnd-tools";
description = "Set of interactive command line tools for Dungeons and Dragons 5th Edition";
mainProgram = "dnd-tools";
license = licenses.agpl3Only;
maintainers = [ maintainers.urlordjames ];
};
}