diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-06-26 12:18:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-26 12:18:30 +0200 |
commit | c414599dfae92540ccc0c7d5d49f6cf6dc5b7fc8 (patch) | |
tree | 3a33cfe9629fcb823d237a71188caccf9e6f197d | |
parent | 8a7a8535c4dfce18fad7fd2d3af9f13a3b58be7b (diff) | |
parent | 99a01ed596ecfe3f401caed643cc239996a874da (diff) |
Merge pull request #321530 from amy-keibler/enable-licensure-mac-build
licensure: enable darwin builds
-rw-r--r-- | pkgs/by-name/li/licensure/package.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/by-name/li/licensure/package.nix b/pkgs/by-name/li/licensure/package.nix index 19e580df3d5bb..9798bc0d8f362 100644 --- a/pkgs/by-name/li/licensure/package.nix +++ b/pkgs/by-name/li/licensure/package.nix @@ -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; }; } |