Commit 02e696a3 authored by aleksana's avatar aleksana Committed by Alyssa Ross
Browse files

amp: format with nixfmt-rfc-style

parent 95c01ac8
Loading
Loading
Loading
Loading
+33 −5
Original line number Diff line number Diff line
{ 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`";