Merge pull request #222293 from viraptor/rustypaste-darwin

rustypaste: fix darwin build
This commit is contained in:
Stanisław Pitucha 2023-03-21 19:59:39 +11:00 committed by GitHub
commit 4807f64975
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ lib, rustPlatform, fetchFromGitHub }:
{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
rustPlatform.buildRustPackage rec {
pname = "rustypaste";
@ -13,6 +13,10 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-/zji2sFaOweBo666LqfNRpO/0vi1eAGgOReeuvQIaEQ=";
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.CoreServices
];
# Some tests need network
checkFlags = [
"--skip paste::tests::test_paste_data"