From f4235345e44e35af00dfa0fd30a3288a0b4ab853 Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Fri, 15 Mar 2024 08:10:25 +0400 Subject: [PATCH 1/2] =?UTF-8?q?surrealdb:=201.2.1=20=E2=86=92=201.3.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/servers/nosql/surrealdb/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/nosql/surrealdb/default.nix b/pkgs/servers/nosql/surrealdb/default.nix index ce1ed67d2046..4b2504d71b67 100644 --- a/pkgs/servers/nosql/surrealdb/default.nix +++ b/pkgs/servers/nosql/surrealdb/default.nix @@ -13,16 +13,16 @@ rustPlatform.buildRustPackage rec { pname = "surrealdb"; - version = "1.2.1"; + version = "1.3.1"; src = fetchFromGitHub { owner = "surrealdb"; repo = "surrealdb"; rev = "v${version}"; - hash = "sha256-ICQvAyBV+7cyHiwwiPEaoGT/W/pM4yiSpqByzkByRK4="; + hash = "sha256-dnfgU7nTX3vvqN9Mox6USRfpFdEI/dAOKIVZ2Jd4t9o="; }; - cargoHash = "sha256-a9ZRr6U7mKCk2uaXJmCJMaCQxJ9adbRLMRUpJrsookk="; + cargoHash = "sha256-B+x+xEcwHqoYMolAuMQzSiO/QA1FiBGO3eis9kgN1S4="; # error: linker `aarch64-linux-gnu-gcc` not found postPatch = '' @@ -43,11 +43,17 @@ rustPlatform.buildRustPackage rec { buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ SystemConfiguration ]; + doCheck = false; + checkFlags = [ # flaky "--skip=ws_integration::none::merge" + # requires docker + "--skip=database_upgrade" ]; + __darwinAllowLocalNetworking = true; + passthru.tests.version = testers.testVersion { package = surrealdb; command = "surreal version"; From 33f3c988220217dad6325f1945b25d516fcec7f1 Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Fri, 15 Mar 2024 08:16:36 +0400 Subject: [PATCH 2/2] surrealdb: migrate to by-name --- .../default.nix => by-name/su/surrealdb/package.nix} | 4 ++-- pkgs/top-level/all-packages.nix | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) rename pkgs/{servers/nosql/surrealdb/default.nix => by-name/su/surrealdb/package.nix} (93%) diff --git a/pkgs/servers/nosql/surrealdb/default.nix b/pkgs/by-name/su/surrealdb/package.nix similarity index 93% rename from pkgs/servers/nosql/surrealdb/default.nix rename to pkgs/by-name/su/surrealdb/package.nix index 4b2504d71b67..f5c8fecc1b09 100644 --- a/pkgs/servers/nosql/surrealdb/default.nix +++ b/pkgs/by-name/su/surrealdb/package.nix @@ -7,7 +7,7 @@ , rocksdb , testers , surrealdb -, SystemConfiguration +, darwin , protobuf }: @@ -41,7 +41,7 @@ rustPlatform.buildRustPackage rec { ]; buildInputs = [ openssl ] - ++ lib.optionals stdenv.isDarwin [ SystemConfiguration ]; + ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ]; doCheck = false; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 415d13fadd87..ebda67dbe440 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27036,10 +27036,6 @@ with pkgs; storm = callPackage ../servers/computing/storm { }; - surrealdb = callPackage ../servers/nosql/surrealdb { - inherit (darwin.apple_sdk.frameworks) SystemConfiguration; - }; - switcheroo-control = callPackage ../os-specific/linux/switcheroo-control { }; slurm = callPackage ../servers/computing/slurm { };