2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2022-09-22 12:36:57 +00:00
|
|
|
, nix-update-script
|
2022-06-16 17:23:12 +00:00
|
|
|
, rustPlatform
|
|
|
|
, CoreServices
|
|
|
|
, which
|
|
|
|
}:
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "dotter";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "0.13.0";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SuperCuber";
|
|
|
|
repo = "dotter";
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "v${version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-mAvTy/11a9RGSQpElhpKMzsMC7vA7cbeHsNRy9MnIjw=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
cargoHash = "sha256-XsDp/ssoNVdTHDTPm2ucgBeYmFgbeBIxQ/NsGjCl5Qg=";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ which ];
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
passthru = {
|
2022-12-28 21:21:41 +00:00
|
|
|
updateScript = nix-update-script { };
|
2022-09-22 12:36:57 +00:00
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A dotfile manager and templater written in rust 🦀";
|
|
|
|
homepage = "https://github.com/SuperCuber/dotter";
|
|
|
|
license = licenses.unlicense;
|
|
|
|
maintainers = with maintainers; [ linsui ];
|
|
|
|
};
|
|
|
|
}
|