2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchpatch
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, CoreServices
|
|
|
|
, which
|
|
|
|
}:
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "dotter";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.12.13";
|
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}";
|
2022-08-12 12:06:08 +00:00
|
|
|
hash = "sha256-j3Dj43AbD0V5pZ6mM1uvPsqWAVJrmWyWvwC5NK1cRRY=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
cargoHash = "sha256-HPs55JBbYObunU0cSm/7lsu/DOk4ne9Ea9MCRJ427zo=";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
checkInputs = [ which ];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
mainProgram = "dotter";
|
|
|
|
};
|
|
|
|
}
|