From 4d1e6bc8fc378fa0ff428c610703cf56f9cbfd4e Mon Sep 17 00:00:00 2001 From: Patrick Jackson Date: Fri, 28 Jul 2023 00:49:42 -0700 Subject: [PATCH] Disable server tests in the nix build (#1123) * Update deps used for the nix build * Disable server tests in nix build --- atuin.nix | 6 ++++++ flake.lock | 30 ++++++++++++++++++++++++------ 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/atuin.nix b/atuin.nix index 262f570..7a116b8 100644 --- a/atuin.nix +++ b/atuin.nix @@ -35,6 +35,12 @@ rustPlatform.buildRustPackage { --zsh <($out/bin/atuin gen-completions -s zsh) ''; + # Additional flags passed to the cargo test binary, see `cargo test -- --help` + checkFlags = [ + # Registration tests require a postgres server + "--skip=registration" + ]; + 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"; diff --git a/flake.lock b/flake.lock index e606c2f..b8a5a66 100644 --- a/flake.lock +++ b/flake.lock @@ -17,12 +17,15 @@ } }, "flake-utils": { + "inputs": { + "systems": "systems" + }, "locked": { - "lastModified": 1676283394, - "narHash": "sha256-XX2f9c3iySLCw54rJ/CZs+ZK6IQy7GXNY4nSOyu2QG4=", + "lastModified": 1689068808, + "narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=", "owner": "numtide", "repo": "flake-utils", - "rev": "3db36a8b464d0c4532ba1c7dda728f4576d6d073", + "rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4", "type": "github" }, "original": { @@ -33,11 +36,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1677560409, - "narHash": "sha256-PIvUIsVNozPXe1FmNe9c6B8Febl3t9+51uBKMJ1Q8o0=", + "lastModified": 1690441914, + "narHash": "sha256-Ac+kJQ5z9MDAMyzSc0i0zJDx2i3qi9NjlW5Lz285G/I=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "9e56d6ec92c8fb4192f1392aa5c4101ad77f2070", + "rev": "db8672b8d0a2593c2405aed0c1dfa64b2a2f428f", "type": "github" }, "original": { @@ -53,6 +56,21 @@ "flake-utils": "flake-utils", "nixpkgs": "nixpkgs" } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } } }, "root": "root",