Merge pull request #321530 from amy-keibler/enable-licensure-mac-build

licensure: enable darwin builds
This commit is contained in:
Weijia Wang
2024-06-26 12:18:30 +02:00
committed by GitHub
+7 -2
View File
@@ -1,10 +1,12 @@
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, git
, gitls
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "licensure";
@@ -19,7 +21,10 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-449p+y7qUcTxBOttyQPt+nRtK+s9HJBoVKGdMQaszLQ=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl git gitls ];
buildInputs = [ openssl git gitls ]
++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.SystemConfiguration
];
checkFlags = [
# Checking for files in the git repo (git ls-files),
@@ -33,6 +38,6 @@ rustPlatform.buildRustPackage rec {
license = licenses.gpl3Plus;
mainProgram = "licensure";
maintainers = [ maintainers.soispha ];
platforms = platforms.linux;
platforms = platforms.linux ++ platforms.darwin;
};
}