Unverified Commit 39236257 authored by r-vdp's avatar r-vdp
Browse files

atuin: 18.3.0 -> 18.4.0

parent de61daf7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ import ./make-test-python.nix (

      # store test record in atuin server and sync
      server.succeed("ATUIN_SESSION=$(${atuin}/bin/atuin uuid) ${atuin}/bin/atuin history start 'shazbot'")
      server.succeed("${atuin}/bin/atuin sync")
      server.succeed("ATUIN_SESSION=$(${atuin}/bin/atuin uuid) ${atuin}/bin/atuin sync")

      # configure atuin client on client node
      client.execute("mkdir -p ~/.config/atuin")
+4 −10
Original line number Diff line number Diff line
@@ -4,28 +4,27 @@
  fetchFromGitHub,
  installShellFiles,
  rustPlatform,
  buildPackages,
  apple-sdk_11,
  nixosTests,
}:

rustPlatform.buildRustPackage rec {
  pname = "atuin";
  version = "18.3.0";
  version = "18.4.0";

  src = fetchFromGitHub {
    owner = "atuinsh";
    repo = "atuin";
    rev = "v${version}";
    hash = "sha256-Q3UI1IUD5Jz2O4xj3mFM7DqY3lTy3WhWYPa8QjJHTKE=";
    hash = "sha256-P/q4XYhpXo9kwiltA0F+rQNSlqI+s8TSi5v5lFJWJ/4=";
  };

  # TODO: unify this to one hash because updater do not support this
  cargoHash =
    if stdenv.hostPlatform.isLinux then
      "sha256-K4Vw/d0ZOROWujWr76I3QvfKefLhXLeFufUrgStAyjQ="
      "sha256-JDm7HWMaLSodpOhrR7rm6ZS/ATX/q8fRK+OJ/EKqg3U="
    else
      "sha256-8NAfE7cGFT64ntNXK9RT0D/MbDJweN7vvsG/KlrY4K4=";
      "sha256-mrsqaqJHMyNi3yFDIyAXFBS+LY71VWXE8O7mjvgI6lo=";

  # atuin's default features include 'check-updates', which do not make sense
  # for distribution builds. List all other default features.
@@ -44,11 +43,6 @@ rustPlatform.buildRustPackage rec {
    apple-sdk_11
  ];

  preBuild = ''
    export PROTOC=${buildPackages.protobuf}/bin/protoc
    export PROTOC_INCLUDE="${buildPackages.protobuf}/include";
  '';

  postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
    installShellCompletion --cmd atuin \
      --bash <($out/bin/atuin gen-completions -s bash) \