157b6703ea
* 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.
37 lines
1,000 B
Nix
37 lines
1,000 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, openssl
|
|
, pkg-config
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "stork";
|
|
version = "1.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jameslittle230";
|
|
repo = "stork";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-9fylJcUuModemkBRnXeFfB1b+CD9IvTxW+CnlqaUb60=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-j7OXl66xuTuP6hWJs+xHrwtaBGAYt02OESCN6FH3KX0=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
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;
|
|
};
|
|
}
|