nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python3Packages,
4 fetchFromGitHub,
5}:
6
7python3Packages.buildPythonApplication rec {
8 pname = "dotbot";
9 version = "1.24.0";
10 pyproject = true;
11
12 src = fetchFromGitHub {
13 owner = "anishathalye";
14 repo = "dotbot";
15 tag = "v${version}";
16 hash = "sha256-HlCq9ek/419A+bgwtbRr45Q2RqPPv38QKSV+CwzihFc=";
17 };
18
19 preCheck = ''
20 patchShebangs bin/dotbot
21 '';
22
23 build-system = with python3Packages; [ hatchling ];
24
25 dependencies = with python3Packages; [ pyyaml ];
26
27 nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
28
29 meta = {
30 description = "Tool that bootstraps your dotfiles";
31 mainProgram = "dotbot";
32 longDescription = ''
33 Dotbot is designed to be lightweight and self-contained, with no external
34 dependencies and no installation required. Dotbot can also be a drop-in
35 replacement for any other tool you were using to manage your dotfiles, and
36 Dotbot is VCS-agnostic -- it doesn't make any attempt to manage your
37 dotfiles.
38 '';
39 homepage = "https://github.com/anishathalye/dotbot";
40 changelog = "https://github.com/anishathalye/dotbot/blob/${src.tag}/CHANGELOG.md";
41 license = lib.licenses.mit;
42 maintainers = with lib.maintainers; [ ludat ];
43 };
44}