diff --git a/pkgs/by-name/st/stract/package.nix b/pkgs/by-name/st/stract/package.nix deleted file mode 100644 index 793f9e15132b..000000000000 --- a/pkgs/by-name/st/stract/package.nix +++ /dev/null @@ -1,93 +0,0 @@ -{ - lib, - stdenv, - fetchFromGitHub, - unstableGitUpdater, - fetchurl, - rustPlatform, - pkg-config, - oniguruma, - openssl, - zstd, -}: - -rustPlatform.buildRustPackage { - pname = "stract"; - version = "0-unstable-2025-03-24"; - - src = fetchFromGitHub { - owner = "StractOrg"; - repo = "stract"; - rev = "8ac40b023e0a49f55cdd5b599841ea46d0503ec9"; - hash = "sha256-HrZ70RuBToa5m2DJN3KDHFoWae2YqHGpy1imwi+xvCo="; - fetchSubmodules = true; - }; - - cargoHash = "sha256-UArPGrcEfFZBOZ4Tv7NraqPzdMtyJXVFsfUM32eSGic="; - - nativeBuildInputs = [ pkg-config ]; - - buildInputs = [ - oniguruma - openssl - zstd - ]; - - env = { - RUSTONIG_SYSTEM_LIBONIG = true; - ZSTD_SYS_USE_PKG_CONFIG = true; - SWAGGER_UI_DOWNLOAD_URL = - let - # When updating: - # - Look for the version of `utoipa-swagger-ui` at: - # https://github.com/StractOrg/stract/blob//Cargo.toml#L183 - # - Look at the corresponding version of `swagger-ui` at: - # https://github.com/juhaku/utoipa/blob/utoipa-swagger-ui-/utoipa-swagger-ui/build.rs#L21-L22 - swaggerUiVersion = "5.17.12"; - swaggerUi = fetchurl { - url = "https://github.com/swagger-api/swagger-ui/archive/refs/tags/v${swaggerUiVersion}.zip"; - hash = "sha256-HK4z/JI+1yq8BTBJveYXv9bpN/sXru7bn/8g5mf2B/I="; - }; - in - "file://${swaggerUi}"; - }; - - # swagger-ui will once more be copied in the target directory during the check phase - # Not deleting the existing unpacked archive leads to a `PermissionDenied` error - preCheck = '' - rm -rf target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/build/ - ''; - - checkFlags = [ - # error: struct `MyCustomDocument` is never constructed - "--skip=schema::document" - # thread 'ampc::dht::tests::proptest_chaos' panicked at crates/core/src/ampc/dht/mod.rs:670:33: - # assertion `left == right` failed - "--skip=ampc::dht::tests::proptest_chaos" - # thread 'ranking::tests::freshness_ranking' (105864) panicked at crates/core/src/ranking/mod.rs:355:9: - # assertion `left == right` failed - # left: "https://www.old.com/" - # right: "https://www.new.com/" - "--skip=ranking::tests::freshness_ranking" - # thread 'crawler::robot_client::tests::test_errs_disallowed_path' - # panicked at ../stract-...-vendor/source-registry-0/system-configuration-0.5.1/src/dynamic_store.rs:154:1: - # Attempted to create a NULL object - "--skip=crawler::robot_client::tests::test_errs_disallowed_path" - ]; - - __darwinAllowLocalNetworking = true; - - passthru.updateScript = unstableGitUpdater { }; - - meta = { - description = "Open source web search engine"; - longDescription = '' - Stract is an open source web search engine targeted towards tinkerers and - developers, with an official instance hosted at stract.com - ''; - homepage = "https://github.com/StractOrg/stract"; - license = lib.licenses.agpl3Only; - maintainers = with lib.maintainers; [ ailsa-sun ]; - teams = with lib.teams; [ ngi ]; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 695415f002d5..336a2e642fab 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -2201,6 +2201,7 @@ mapAliases { steamPackages.steamcmd = throw "'steamPackages.steamcmd' has been renamed to/replaced by 'steamcmd'"; # Converted to throw 2025-10-27 storeBackup = storebackup; # Added 2026-07-05 StormLib = throw "'StormLib' has been renamed to/replaced by 'stormlib'"; # Converted to throw 2025-10-27 + stract = throw "'stract' has been removed because the upstream project was archived on 2026-04-02"; # Added 2026-07-28 strawberry-qt5 = throw "strawberry-qt5 has been replaced by strawberry"; # Converted to throw 2025-07-19 strawberry-qt6 = throw "strawberry-qt6 has been replaced by strawberry"; # Added 2025-07-19 stremio = throw "'stremio' has been removed as it depended on the vulnerable and outdated qt5 webengine. On Linux, consider using 'stremio-linux-shell' instead."; # Added 2026-02-11