Unverified Commit 780c7c8c authored by Anton Mosich's avatar Anton Mosich
Browse files

stork: modernize

parent dcd14f07
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -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";
  };
}
})