Skip to content

Commit

Permalink
forgejo-cli: add BUILD_TYPE env & move to new darwin pattern (#366849)
Browse files Browse the repository at this point in the history
* forgejo-cli: add BUILD_TYPE env

* forgejo-cli: move to new darwin pattern
  • Loading branch information
isabelroses authored Dec 31, 2024
1 parent a88b753 commit b4ce55d
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions pkgs/by-name/fo/forgejo-cli/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
oniguruma,
openssl,
zlib,
stdenv,
darwin,
}:
let
version = "0.2.0";
Expand All @@ -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 = {
Expand Down

0 comments on commit b4ce55d

Please sign in to comment.