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

32 lines
800 B
Nix
Raw Normal View History

2021-05-08 09:28:16 +00:00
{ lib
2021-05-11 21:02:05 +00:00
, stdenv
2021-05-08 09:28:16 +00:00
, fetchFromGitHub
, rustPlatform
2021-05-11 21:02:05 +00:00
, libiconv
, Security
, SystemConfiguration
2021-05-08 09:28:16 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "atuin";
version = "0.7.1";
src = fetchFromGitHub {
owner = "ellie";
repo = pname;
rev = "v${version}";
sha256 = "sha256-jjGP8YeHnEr0f9RONwA6wZT872C0jXTvSRdt9zAu6KE=";
};
cargoSha256 = "0vy6q3hjp374lyg00zxim8aplh83iq3f4rrmpz5vnpwbag1fdql3";
2021-05-11 21:02:05 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security SystemConfiguration ];
2021-05-08 09:28:16 +00:00
meta = with lib; {
description = "Replacement for a shell history which records additional commands context with optional encrypted synchronization between machines";
homepage = "https://github.com/ellie/atuin";
license = licenses.mit;
maintainers = [ maintainers.onsails ];
};
}