atuin: 17.2.1 -> 18.0.0

This commit is contained in:
0x4A6F 2024-02-09 14:12:05 +01:00
parent 9a113b42b3
commit 3b5e4b9d76
No known key found for this signature in database
GPG Key ID: 8DEDBA5BE07080E1
2 changed files with 14 additions and 12 deletions

View File

@ -4,32 +4,35 @@
, installShellFiles
, rustPlatform
, libiconv
, AppKit
, Security
, SystemConfiguration
, darwin
, nixosTests
}:
rustPlatform.buildRustPackage rec {
pname = "atuin";
version = "17.2.1";
version = "18.0.0";
src = fetchFromGitHub {
owner = "atuinsh";
repo = "atuin";
rev = "v${version}";
hash = "sha256-nXIYy8rE5FbXxg2EvZ02okpd+BIEI79Mk9W5YcroPGA=";
hash = "sha256-2nBaGoaTd1TGm8aZnrNA66HkW7+OrD6gOmj+uSFz020=";
};
# TODO: unify this to one hash because updater do not support this
cargoHash =
if stdenv.isLinux
then "sha256-KKG3cJYX3lQfXY8wTdQFrdfAhlzeDuR2PYF4NWn7Swk="
else "sha256-VzLcMC79JYZ87ZnO0lQ/mL/5Wrnl2/6E5GblhCvh1FA=";
then "sha256-Y+49R/foid+V83tY3bqf644OkMPukJxg2/ZVfJxDaFg="
else "sha256-gT2JRzBAF4IsXVv1Hvo6kr9qrNE/3bojtULCx6YawhA=";
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv AppKit Security SystemConfiguration ];
buildInputs = lib.optionals stdenv.isDarwin [
libiconv
darwin.apple_sdk.frameworks.AppKit
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
];
postInstall = ''
installShellCompletion --cmd atuin \
@ -47,6 +50,9 @@ rustPlatform.buildRustPackage rec {
"--skip=registration"
# No such file or directory (os error 2)
"--skip=sync"
# further failing tests
"--skip=change_password"
"--skip=multi_user_test"
];
meta = with lib; {

View File

@ -290,10 +290,6 @@ with pkgs;
_0x = callPackage ../tools/misc/0x { };
atuin = callPackage ../tools/misc/atuin {
inherit (darwin.apple_sdk.frameworks) AppKit Security SystemConfiguration;
};
automatic-timezoned = callPackage ../tools/system/automatic-timezoned { };
cve = with python3Packages; toPythonApplication cvelib;