Unverified Commit b4ce55db authored by Isabel's avatar Isabel Committed by GitHub
Browse files

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
parent a88b7533
Loading
Loading
Loading
Loading
+7 −16
Original line number Diff line number Diff line
@@ -7,8 +7,6 @@
  oniguruma,
  openssl,
  zlib,
  stdenv,
  darwin,
}:
let
  version = "0.2.0";
@@ -29,23 +27,16 @@ rustPlatform.buildRustPackage {

  nativeBuildInputs = [ pkg-config ];

  buildInputs =
    [
  buildInputs = [
    libgit2
    oniguruma
    openssl
    zlib
    ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin (
      with darwin.apple_sdk.frameworks;
      [
        Security
        SystemConfiguration
      ]
    );
  ];

  env = {
    RUSTONIG_SYSTEM_LIBONIG = true;
    BUILD_TYPE = "nixpkgs";
  };

  meta = {