stork: modernize

This commit is contained in:
Anton Mosich
2025-05-01 23:47:33 +02:00
parent dcd14f078d
commit 780c7c8c01
+10 -7
View File
@@ -6,17 +6,18 @@
pkg-config,
stdenv,
Security,
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "stork";
version = "1.6.0";
src = fetchFromGitHub {
owner = "jameslittle230";
repo = "stork";
rev = "v${version}";
sha256 = "sha256-qGcEhoytkCkcaA5eHc8GVgWvbOIyrO6BCp+EHva6wTw=";
tag = "v${finalAttrs.version}";
hash = "sha256-qGcEhoytkCkcaA5eHc8GVgWvbOIyrO6BCp+EHva6wTw=";
};
useFetchCargoVendor = true;
@@ -31,11 +32,13 @@ rustPlatform.buildRustPackage rec {
buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
meta = with lib; {
nativeCheckInputs = [ versionCheckHook ];
meta = {
description = "Impossibly fast web search, made for static sites";
homepage = "https://github.com/jameslittle230/stork";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ chuahou ];
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ chuahou ];
mainProgram = "stork";
};
}
})