From 99a01ed596ecfe3f401caed643cc239996a874da Mon Sep 17 00:00:00 2001 From: Amelia Keibler Date: Fri, 21 Jun 2024 09:53:32 -0400 Subject: licensure: enable darwin builds Licensure provides provides Mac builds, so they appear to intend to support Mac users and avoid Linux-specific dependencies that would limit their ability to run this program cross-platform. --- pkgs/by-name/li/licensure/package.nix | 9 +++++++-- 1 file 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; }; } -- cgit 1.4.1