about summary refs log tree commit diff
path: root/pkgs/applications/editors
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-09-17 17:54:20 -0400
committerGitHub <noreply@github.com>2019-09-17 17:54:20 -0400
commitb6ad762f9c43ba1d46a46d1ccf2634cf41bdd12a (patch)
tree05a75fa7f3c5f06d3bdb0ac67f453785ce4d8f0b /pkgs/applications/editors
parent7c044bb820a2240d72b4e9b55567125217f53bfc (diff)
parent383fc6e2cf473b95a588783d4dce4f0988de5849 (diff)
downloadnixlib-b6ad762f9c43ba1d46a46d1ccf2634cf41bdd12a.tar
nixlib-b6ad762f9c43ba1d46a46d1ccf2634cf41bdd12a.tar.gz
nixlib-b6ad762f9c43ba1d46a46d1ccf2634cf41bdd12a.tar.bz2
nixlib-b6ad762f9c43ba1d46a46d1ccf2634cf41bdd12a.tar.lz
nixlib-b6ad762f9c43ba1d46a46d1ccf2634cf41bdd12a.tar.xz
nixlib-b6ad762f9c43ba1d46a46d1ccf2634cf41bdd12a.tar.zst
nixlib-b6ad762f9c43ba1d46a46d1ccf2634cf41bdd12a.zip
Merge pull request #68870 from B4dM4n/amp-darwin
amp: fix darwin build
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r--pkgs/applications/editors/amp/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/applications/editors/amp/default.nix b/pkgs/applications/editors/amp/default.nix
index 98692de43170..31d0806df8a5 100644
--- a/pkgs/applications/editors/amp/default.nix
+++ b/pkgs/applications/editors/amp/default.nix
@@ -1,4 +1,5 @@
-{ stdenv, fetchFromGitHub, rustPlatform, openssl, pkgconfig, python3, xorg, cmake, libgit2 }:
+{ stdenv, fetchFromGitHub, rustPlatform, openssl, pkgconfig, python3, xorg, cmake, libgit2, darwin
+, curl }:
 
 rustPlatform.buildRustPackage rec {
   pname = "amp";
@@ -15,7 +16,8 @@ rustPlatform.buildRustPackage rec {
   cargoSha256 = "1bvj2zg19ak4vi47vjkqlybz011kn5zq1j7zznr76zrryacw4lz1";
 
   nativeBuildInputs = [ cmake pkgconfig ];
-  buildInputs = [ openssl python3 xorg.libxcb libgit2 ];
+  buildInputs = [ openssl python3 xorg.libxcb libgit2 ] ++ stdenv.lib.optionals stdenv.isDarwin
+    (with darwin.apple_sdk.frameworks; [ curl Security AppKit ]);
 
   # Tests need to write to the theme directory in HOME.
   preCheck = "export HOME=`mktemp -d`";