amp: format with nixfmt-rfc-style

This commit is contained in:
aleksana 2024-09-07 15:19:43 +08:00 committed by Alyssa Ross
parent 95c01ac8f9
commit 02e696a3bc

View File

@ -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`";