atuin: 0.7.1 -> 0.8.0, install shell completion, add SuperSandro2000 as maintainer
This commit is contained in:
parent
5378ea7a5d
commit
71e0e81616
|
@ -1,6 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, installShellFiles
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, libiconv
|
, libiconv
|
||||||
, Security
|
, Security
|
||||||
|
@ -9,24 +10,37 @@
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "atuin";
|
pname = "atuin";
|
||||||
version = "0.7.1";
|
version = "0.8.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ellie";
|
owner = "ellie";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-jjGP8YeHnEr0f9RONwA6wZT872C0jXTvSRdt9zAu6KE=";
|
sha256 = "sha256-I/ZDaOAiHdWOkmf+jIWWxZ3C25UHsl6MB7mCRLADFNs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "0vy6q3hjp374lyg00zxim8aplh83iq3f4rrmpz5vnpwbag1fdql3";
|
cargoSha256 = "sha256-KMss6Mpn4LHnkhtJyRea+D7mKItBK4lqq9syFEmCiFo=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security SystemConfiguration ];
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security SystemConfiguration ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
HOME=$(mktemp -d)
|
||||||
|
for shell in bash fish zsh; do
|
||||||
|
$out/bin/atuin gen-completions -s $shell -o .
|
||||||
|
done
|
||||||
|
|
||||||
|
installShellCompletion --cmd atuin \
|
||||||
|
--bash atuin.bash \
|
||||||
|
--fish atuin.fish \
|
||||||
|
--zsh _atuin
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Replacement for a shell history which records additional commands context with optional encrypted synchronization between machines";
|
description = "Replacement for a shell history which records additional commands context with optional encrypted synchronization between machines";
|
||||||
homepage = "https://github.com/ellie/atuin";
|
homepage = "https://github.com/ellie/atuin";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ maintainers.onsails ];
|
maintainers = with maintainers; [ onsails SuperSandro2000 ];
|
||||||
broken = stdenv.isDarwin && stdenv.isAarch64;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue