rojo: fix build on darwin
This commit is contained in:
parent
1602f4034c
commit
a090dee5ea
|
@ -4,8 +4,12 @@
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, openssl
|
, openssl
|
||||||
|
, darwin
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||||
|
in
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "rojo";
|
pname = "rojo";
|
||||||
version = "7.2.1";
|
version = "7.2.1";
|
||||||
|
@ -26,8 +30,13 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
openssl
|
openssl
|
||||||
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
|
CoreServices
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# tests flaky on darwin on hydra
|
||||||
|
doCheck = !stdenv.isDarwin;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Project management tool for Roblox";
|
description = "Project management tool for Roblox";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
@ -38,7 +47,5 @@ rustPlatform.buildRustPackage rec {
|
||||||
changelog = "https://github.com/rojo-rbx/rojo/raw/v${version}/CHANGELOG.md";
|
changelog = "https://github.com/rojo-rbx/rojo/raw/v${version}/CHANGELOG.md";
|
||||||
license = licenses.mpl20;
|
license = licenses.mpl20;
|
||||||
maintainers = with maintainers; [ wackbyte ];
|
maintainers = with maintainers; [ wackbyte ];
|
||||||
# never built on aarch64-darwin, x86_64-darwin since first introduction in nixpkgs
|
|
||||||
broken = stdenv.isDarwin;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue