mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
30 lines
960 B
Nix
30 lines
960 B
Nix
{ python3, fetchFromGitHub, fetchpatch, lib }:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "dnd-tools";
|
|
version = "unstable-2021-02-18";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "savagezen";
|
|
repo = pname;
|
|
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";
|
|
})
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|