nixpkgs/pkgs/tools/misc/dotter/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
843 B
Nix
Raw Normal View History

2022-06-08 02:17:47 +00:00
{ lib
, stdenv
, fetchFromGitHub
2022-09-13 08:56:50 +00:00
, nix-update-script
2022-06-08 02:17:47 +00:00
, rustPlatform
, CoreServices
, which
}:
2022-02-22 14:46:05 +00:00
rustPlatform.buildRustPackage rec {
pname = "dotter";
2023-12-11 19:30:19 +00:00
version = "0.13.1";
2022-02-22 14:46:05 +00:00
src = fetchFromGitHub {
owner = "SuperCuber";
repo = "dotter";
2022-04-25 12:49:50 +00:00
rev = "v${version}";
2023-12-11 19:30:19 +00:00
hash = "sha256-Xmdg5ITKWhL5AxTS7z4f9ecigQpBqna+kZclA+mDJhA=";
2022-02-22 14:46:05 +00:00
};
2023-12-11 19:30:19 +00:00
cargoHash = "sha256-W8khm9E5f/PROVJDAUr57nAiTEXV4a0fepzV00HoT8c=";
2022-02-22 14:46:05 +00:00
2022-05-12 07:28:06 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
nativeCheckInputs = [ which ];
2022-02-22 14:46:05 +00:00
2022-09-13 08:56:50 +00:00
passthru = {
updateScript = nix-update-script { };
2022-09-13 08:56:50 +00:00
};
2022-02-22 14:46:05 +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 ];
2023-11-27 01:17:53 +00:00
mainProgram = "dotter";
2022-02-22 14:46:05 +00:00
};
}