mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user