monolith: enable on darwin

This commit is contained in:
Mario Rodas 2020-05-24 23:23:23 -05:00
parent 8198d23ed7
commit 3a3cbfd12b
No known key found for this signature in database
GPG key ID: 325649BCA6D53027
2 changed files with 8 additions and 4 deletions

View file

@ -3,6 +3,7 @@
, fetchFromGitHub
, pkg-config
, openssl
, Security
}:
rustPlatform.buildRustPackage rec {
@ -18,10 +19,11 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "1plx9p265jcc6wg3bhcdk1f77md8ann08kkv3g2706d82kxy2c1i";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
nativeBuildInputs = stdenv.lib.optionals stdenv.isLinux [ pkg-config ];
buildInputs = stdenv.lib.optionals stdenv.isLinux [ openssl ]
++ stdenv.lib.optionals stdenv.isDarwin [ Security ];
checkPhase = "cargo test -- --skip tests::cli";
checkFlagsArray = [ "--skip=tests::cli" ];
meta = with stdenv.lib; {
description = "Bundle any web page into a single HTML file";

View file

@ -5264,7 +5264,9 @@ in
monit = callPackage ../tools/system/monit { };
monolith = callPackage ../tools/backup/monolith { };
monolith = callPackage ../tools/backup/monolith {
inherit (darwin.apple_sdk.frameworks) Security;
};
moreutils = callPackage ../tools/misc/moreutils {
docbook-xsl = docbook_xsl;