Files
nixpkgs/pkgs/by-name/st/stork/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

45 lines
1.0 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
openssl,
pkg-config,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "stork";
version = "1.6.0";
src = fetchFromGitHub {
owner = "jameslittle230";
repo = "stork";
tag = "v${finalAttrs.version}";
hash = "sha256-qGcEhoytkCkcaA5eHc8GVgWvbOIyrO6BCp+EHva6wTw=";
};
cargoPatches = [ ./update-wasm-bindgen.patch ];
cargoHash = "sha256-d6PLrs/n9riQ9oQTWn+6Ec1E5JhJZ7akDg8/UB21GzI=";
checkFlags = [
# Fails for 1.6.0, but binary works fine
"--skip=pretty_print_search_results::tests::display_pretty_search_results_given_output"
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
meta = {
description = "Impossibly fast web search, made for static sites";
homepage = "https://github.com/jameslittle230/stork";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ chuahou ];
mainProgram = "stork";
};
})