Unverified Commit ae7c1f0f authored by Victor Engmark's avatar Victor Engmark
Browse files

pre-commit: Format using nixfmt-rfc-style

parent ef9236d3
Loading
Loading
Loading
Loading
+32 −29
Original line number Diff line number Diff line
{ lib
, fetchFromGitHub
, python3Packages
, libiconv
, cargo
, coursier
, dotnet-sdk
, git
, glibcLocales
, go
, nodejs
, perl
, cabal-install
, testers
, pre-commit
{
  lib,
  fetchFromGitHub,
  python3Packages,
  libiconv,
  cargo,
  coursier,
  dotnet-sdk,
  git,
  glibcLocales,
  go,
  nodejs,
  perl,
  cabal-install,
  testers,
  pre-commit,
}:

with python3Packages;
@@ -81,10 +82,12 @@ buildPythonApplication rec {
    "--forked"
  ];

  preCheck = lib.optionalString (!(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64)) ''
  preCheck =
    lib.optionalString (!(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64)) ''
      # Disable outline atomics for rust tests on aarch64-linux.
      export RUSTFLAGS="-Ctarget-feature=-outline-atomics"
  '' + ''
    ''
    + ''
      export GIT_AUTHOR_NAME=test GIT_COMMITTER_NAME=test \
             GIT_AUTHOR_EMAIL=test@example.com GIT_COMMITTER_EMAIL=test@example.com \
             VIRTUALENV_NO_DOWNLOAD=1 PRE_COMMIT_NO_CONCURRENCY=1 LANG=en_US.UTF-8