stork: 1.3.0 -> 1.4.0

* stork: 1.3.0 -> 1.4.0 (#157416)

* stork: add Security framework and mark broken for x64 darwin build

- The Security framework is needed to build on Darwin.
- It currently fails on x86_64-darwin because the SDK is too old.
- For more details, see #157416.
This commit is contained in:
Chua Hou 2022-02-19 23:35:27 +00:00 committed by GitHub
parent 90cdc0cc2f
commit 157b6703ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,29 +3,35 @@
, fetchFromGitHub
, openssl
, pkg-config
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "stork";
version = "1.3.0";
version = "1.4.0";
src = fetchFromGitHub {
owner = "jameslittle230";
repo = "stork";
rev = "v${version}";
sha256 = "sha256-or8PDEj97ChZq6r3WlwETYbU6EvoEuh8HfTyBIbbO8M=";
sha256 = "sha256-9fylJcUuModemkBRnXeFfB1b+CD9IvTxW+CnlqaUb60=";
};
cargoSha256 = "sha256-UpIPbY2beO1H0YR9kV1SkG6C3qcO4x2acfgqI3x5jiM=";
cargoSha256 = "sha256-j7OXl66xuTuP6hWJs+xHrwtaBGAYt02OESCN6FH3KX0=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
meta = with lib; {
description = "Impossibly fast web search, made for static sites";
homepage = "https://github.com/jameslittle230/stork";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ chuahou ];
# TODO: Remove once nixpkgs uses macOS SDK 10.14+ for x86_64-darwin
# Undefined symbols for architecture x86_64: "_SecTrustEvaluateWithError"
broken = stdenv.isDarwin && stdenv.isx86_64;
};
}