mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 12:15:34 +03: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:
parent
a88b7533e3
commit
b4ce55dba9
1 changed files with 7 additions and 16 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue