cobalt: fix darwin build (#129758)

* cobalt: fix darwin build

* Update pkgs/applications/misc/cobalt/default.nix

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Ethan Edwards 2021-07-11 12:54:13 -04:00 committed by GitHub
parent 635a195404
commit b15ff3e91e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, rustPlatform }:
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
rustPlatform.buildRustPackage rec {
pname = "cobalt";
@ -13,10 +13,13 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "27LcoGBI4elt80uQkTwvToOyEmd2+/3ma5Y32OFrJaw=";
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
meta = with lib; {
description = "Static site generator written in Rust";
homepage = "https://github.com/cobalt-org/cobalt.rs/";
license = licenses.mit;
maintainers = with maintainers; [ ethancedwards8 ];
platforms = platforms.unix;
};
}

View file

@ -3889,7 +3889,9 @@ in
cloud-utils = callPackage ../tools/misc/cloud-utils { };
cobalt = callPackage ../applications/misc/cobalt { };
cobalt = callPackage ../applications/misc/cobalt {
inherit (darwin.apple_sdk.frameworks) CoreServices;
};
cocoapods = callPackage ../development/mobile/cocoapods { };