38 lines
829 B
Nix
38 lines
829 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchpatch
|
|
, fetchFromGitHub
|
|
, nix-update-script
|
|
, rustPlatform
|
|
, CoreServices
|
|
, which
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "dotter";
|
|
version = "0.12.15";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SuperCuber";
|
|
repo = "dotter";
|
|
rev = "v${version}";
|
|
hash = "sha256-quMEwg/B4ey6zoxDZO2ce3/s1FX5xxmJfyAlt4YvFqE=";
|
|
};
|
|
|
|
cargoHash = "sha256-D8H95dE+th1mMzlLmd+fqU5VdlxdOSBHKSjvh21JhnE=";
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
nativeCheckInputs = [ which ];
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|