forgejo-cli: add BUILD_TYPE env & move to new darwin pattern (#366849)

* forgejo-cli: add BUILD_TYPE env

* forgejo-cli: move to new darwin pattern
This commit is contained in:
Isabel 2024-12-31 02:29:48 +00:00 committed by GitHub
parent a88b7533e3
commit b4ce55dba9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,8 +7,6 @@
oniguruma, oniguruma,
openssl, openssl,
zlib, zlib,
stdenv,
darwin,
}: }:
let let
version = "0.2.0"; version = "0.2.0";
@ -29,23 +27,16 @@ rustPlatform.buildRustPackage {
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = buildInputs = [
[ libgit2
libgit2 oniguruma
oniguruma openssl
openssl zlib
zlib ];
]
++ lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
[
Security
SystemConfiguration
]
);
env = { env = {
RUSTONIG_SYSTEM_LIBONIG = true; RUSTONIG_SYSTEM_LIBONIG = true;
BUILD_TYPE = "nixpkgs";
}; };
meta = { meta = {