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