2022-08-27 05:20:00 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, openssl, pkg-config, Security }:
|
2022-01-07 05:26:00 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "dura";
|
2022-08-27 05:20:00 +01:00
|
|
|
version = "0.2.0";
|
2022-01-07 05:26:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tkellogg";
|
|
|
|
repo = "dura";
|
2022-08-27 05:20:00 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-xAcFk7z26l4BYYBEw+MvbG6g33MpPUvnpGvgmcqhpGM=";
|
2022-01-07 05:26:00 +00:00
|
|
|
};
|
|
|
|
|
2022-08-27 05:20:00 +01:00
|
|
|
cargoSha256 = "sha256-XOtPtOEKZMJzNeBZBT3Mc/KOjMOcz71byIv/ftcRP48=";
|
|
|
|
|
|
|
|
cargoPatches = [
|
|
|
|
./Cargo.lock.patch
|
|
|
|
];
|
2022-01-07 05:26:00 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
2022-08-27 05:20:00 +01:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
Security
|
2022-01-07 05:26:00 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-12-18 00:39:44 +00:00
|
|
|
description = "A background process that saves uncommitted changes on git";
|
2022-01-07 05:26:00 +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 ];
|
|
|
|
};
|
|
|
|
}
|