2022-05-12 08:28:06 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices, which }:
|
2022-02-22 14:46:05 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "dotter";
|
2022-04-25 13:49:50 +01:00
|
|
|
version = "0.12.10";
|
2022-02-22 14:46:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SuperCuber";
|
|
|
|
repo = "dotter";
|
2022-04-25 13:49:50 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-uSM7M//3LHzdLSOruTyu46sp1a6LeodT2cCEFsuoPW4=";
|
2022-02-22 14:46:05 +00:00
|
|
|
};
|
|
|
|
|
2022-04-25 13:49:50 +01:00
|
|
|
cargoHash = "sha256-JpMEC2HjAQLQiXHSE6L0HBDc0vLhd465wDK2+35aBXA=";
|
2022-02-22 14:46:05 +00:00
|
|
|
|
2022-05-12 08:28:06 +01:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
|
2022-02-22 14:46:05 +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";
|
|
|
|
};
|
|
|
|
}
|