Skip to content

Commit

Permalink
atuin: 16.0.0 -> 17.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4A6F committed Oct 26, 2023
1 parent 7c9cc5a commit fc5f9ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions pkgs/tools/misc/atuin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,32 @@
, installShellFiles
, rustPlatform
, libiconv
, AppKit
, Security
, SystemConfiguration
, nixosTests
}:

rustPlatform.buildRustPackage rec {
pname = "atuin";
version = "16.0.0";
version = "17.0.0";

src = fetchFromGitHub {
owner = "atuinsh";
repo = "atuin";
rev = "v${version}";
hash = "sha256-Kh6aaWYV+ZG7Asvw5JdGsV+nxD+xvvQab5wLIedcQcQ=";
hash = "sha256-eGukHoh1S2CtehapSRUM3+cnVvTpslwvDCSXlrnC4+4=";
};

# TODO: unify this to one hash because updater do not support this
cargoHash =
if stdenv.isLinux
then "sha256-Ami88ScGj58jCCat4MMDvjZtV5WglmrlggpQfo+LPjs="
else "sha256-HQMZ9w1C6go16XGrPNniQZliIQ/5yAp2w/uUwAOQTM0=";
then "sha256-KlfNOZ5xDID+x0GohbLv+SJlPQRK6C5YzbbFnKvm2ng="
else "sha256-8OarzrMc7EiHEDDbs2XiggivebQ68yufnmhXsf6MBwM=";

nativeBuildInputs = [ installShellFiles ];

buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security SystemConfiguration ];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv AppKit Security SystemConfiguration ];

postInstall = ''
installShellCompletion --cmd atuin \
Expand All @@ -44,6 +45,8 @@ rustPlatform.buildRustPackage rec {
checkFlags = [
# tries to make a network access
"--skip=registration"
# No such file or directory (os error 2)
"--skip=sync"
];

meta = with lib; {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ with pkgs;
_0x = callPackage ../tools/misc/0x { };

atuin = callPackage ../tools/misc/atuin {
inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
inherit (darwin.apple_sdk.frameworks) AppKit Security SystemConfiguration;
};

automatic-timezoned = callPackage ../tools/system/automatic-timezoned { };
Expand Down

0 comments on commit fc5f9ca

Please sign in to comment.