3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/misc/dura/default.nix

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

46 lines
1.2 KiB
Nix
Raw Normal View History

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