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

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

35 lines
768 B
Nix
Raw Normal View History

2022-06-08 04:17:47 +02:00
{ lib
, stdenv
, fetchpatch
, fetchFromGitHub
, rustPlatform
, CoreServices
, which
}:
2022-02-22 15:46:05 +01:00
rustPlatform.buildRustPackage rec {
pname = "dotter";
2022-06-08 04:17:47 +02:00
version = "0.12.11";
2022-02-22 15:46:05 +01:00
src = fetchFromGitHub {
owner = "SuperCuber";
repo = "dotter";
2022-04-25 14:49:50 +02:00
rev = "v${version}";
2022-06-08 04:17:47 +02:00
hash = "sha256-7K0p20FqaYFzOmUAeq1ousAPCeqE4AZoARF3UY4p4bY=";
2022-02-22 15:46:05 +01:00
};
2022-06-08 04:17:47 +02:00
cargoHash = "sha256-BN6cdRmhvMjYQlaEa840+syuVKKUQ59TPMKicm40MTk=";
2022-02-22 15:46:05 +01:00
2022-05-12 09:28:06 +02:00
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
2022-02-22 15:46:05 +01: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";
};
}