Merge pull request #200480 from dit7ya/cotton-darwin
cotton: fix build on darwin
This commit is contained in:
commit
d46b10c653
2 changed files with 8 additions and 2 deletions
|
@ -1,6 +1,8 @@
|
|||
{ lib
|
||||
{ stdenv
|
||||
, lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, CoreServices
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
|
@ -16,6 +18,8 @@ rustPlatform.buildRustPackage rec {
|
|||
|
||||
cargoSha256 = "sha256-qpV3UriOidIk/0di9d8RjXvjcjgD6dXqg7wLAywI66o=";
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A package manager for JavaScript projects";
|
||||
homepage = "https://github.com/danielhuang/cotton";
|
||||
|
|
|
@ -13640,7 +13640,9 @@ with pkgs;
|
|||
|
||||
copper = callPackage ../development/compilers/copper {};
|
||||
|
||||
cotton = callPackage ../development/tools/cotton { };
|
||||
cotton = callPackage ../development/tools/cotton {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||
};
|
||||
|
||||
inherit (callPackages ../development/compilers/crystal {
|
||||
llvmPackages = if stdenv.system == "aarch64-darwin" then llvmPackages_11 else llvmPackages_10;
|
||||
|
|
Loading…
Reference in a new issue