diff --git a/pkgs/applications/editors/amp/default.nix b/pkgs/applications/editors/amp/default.nix index e559ceb73ec7..dac368068f82 100644 --- a/pkgs/applications/editors/amp/default.nix +++ b/pkgs/applications/editors/amp/default.nix @@ -1,5 +1,17 @@ -{ lib, stdenv, fetchFromGitHub, rustPlatform, openssl, pkg-config, python3, xorg, cmake, libgit2, darwin -, curl }: +{ + lib, + stdenv, + fetchFromGitHub, + rustPlatform, + openssl, + pkg-config, + python3, + xorg, + cmake, + libgit2, + darwin, + curl, +}: rustPlatform.buildRustPackage rec { pname = "amp"; @@ -14,9 +26,25 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-4c72l3R9OyxvslKC4RrIu/Ka3grGxIUCY6iF/NHS5X8="; - nativeBuildInputs = [ cmake pkg-config python3 ]; - buildInputs = [ openssl xorg.libxcb libgit2 ] ++ lib.optionals stdenv.isDarwin - (with darwin.apple_sdk.frameworks; [ curl Security AppKit ]); + nativeBuildInputs = [ + cmake + pkg-config + python3 + ]; + buildInputs = + [ + openssl + xorg.libxcb + libgit2 + ] + ++ 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`";