about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorMostly Void <7rat13@gmail.com>2022-11-10 11:48:49 +0530
committerMostly Void <7rat13@gmail.com>2022-11-10 11:48:49 +0530
commit184023a1f9e8ce094c2961a855e7f7ccb9eb0e79 (patch)
tree73f287f570a9b23d21737b10ad80a9652fd1fa5c /pkgs/development
parentf680c2020f41da5d2ed5d88ad3f997b9a8d03b77 (diff)
cotton: fix build on darwin
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/tools/cotton/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/tools/cotton/default.nix b/pkgs/development/tools/cotton/default.nix
index 34cf19d40fddb..310561d526465 100644
--- a/pkgs/development/tools/cotton/default.nix
+++ b/pkgs/development/tools/cotton/default.nix
@@ -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";