depot/third_party/nixpkgs/pkgs/development/tools/misc/dura/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

46 lines
1.2 KiB
Nix

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