2022-09-09 14:08:57 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, openssl, pkg-config, Security }:
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "dura";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "0.2.0";
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tkellogg";
|
|
|
|
repo = "dura";
|
2022-09-09 14:08:57 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-xAcFk7z26l4BYYBEw+MvbG6g33MpPUvnpGvgmcqhpGM=";
|
2022-01-19 23:45:15 +00:00
|
|
|
};
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
cargoSha256 = "sha256-XOtPtOEKZMJzNeBZBT3Mc/KOjMOcz71byIv/ftcRP48=";
|
|
|
|
|
|
|
|
cargoPatches = [
|
|
|
|
./Cargo.lock.patch
|
|
|
|
];
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
2022-09-09 14:08:57 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
Security
|
2022-01-19 23:45:15 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-12-28 21:21:41 +00:00
|
|
|
description = "A background process that saves uncommitted changes on git";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "dura";
|
2022-01-19 23:45:15 +00:00
|
|
|
longDescription = ''
|
|
|
|
Dura is a background process that watches your Git repositories and
|
|
|
|
commits your uncommitted changes without impacting HEAD, the current
|
|
|
|
branch, or the Git index (staged files). If you ever get into an
|
|
|
|
"oh snap!" situation where you think you just lost days of work,
|
|
|
|
checkout a "dura" branch and recover.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/tkellogg/dura";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ drupol ];
|
|
|
|
};
|
|
|
|
}
|