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