1{ lib
2, stdenv
3, fetchFromGitHub
4, nix-update-script
5, rustPlatform
6, CoreServices
7, which
8}:
9
10rustPlatform.buildRustPackage rec {
11 pname = "dotter";
12 version = "0.13.1";
13
14 src = fetchFromGitHub {
15 owner = "SuperCuber";
16 repo = "dotter";
17 rev = "v${version}";
18 hash = "sha256-Xmdg5ITKWhL5AxTS7z4f9ecigQpBqna+kZclA+mDJhA=";
19 };
20
21 cargoHash = "sha256-W8khm9E5f/PROVJDAUr57nAiTEXV4a0fepzV00HoT8c=";
22
23 buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
24
25 nativeCheckInputs = [ which ];
26
27 passthru = {
28 updateScript = nix-update-script { };
29 };
30
31 meta = with lib; {
32 description = "A dotfile manager and templater written in rust 🦀";
33 homepage = "https://github.com/SuperCuber/dotter";
34 license = licenses.unlicense;
35 maintainers = with maintainers; [ linsui ];
36 mainProgram = "dotter";
37 };
38}