mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +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,
|
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 = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue