pre-commit: Format using nixfmt-rfc-style
This commit is contained in:
parent
ef9236d340
commit
ae7c1f0fb4
@ -1,18 +1,19 @@
|
|||||||
{ lib
|
{
|
||||||
, fetchFromGitHub
|
lib,
|
||||||
, python3Packages
|
fetchFromGitHub,
|
||||||
, libiconv
|
python3Packages,
|
||||||
, cargo
|
libiconv,
|
||||||
, coursier
|
cargo,
|
||||||
, dotnet-sdk
|
coursier,
|
||||||
, git
|
dotnet-sdk,
|
||||||
, glibcLocales
|
git,
|
||||||
, go
|
glibcLocales,
|
||||||
, nodejs
|
go,
|
||||||
, perl
|
nodejs,
|
||||||
, cabal-install
|
perl,
|
||||||
, testers
|
cabal-install,
|
||||||
, pre-commit
|
testers,
|
||||||
|
pre-commit,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with python3Packages;
|
with python3Packages;
|
||||||
@ -81,24 +82,26 @@ buildPythonApplication rec {
|
|||||||
"--forked"
|
"--forked"
|
||||||
];
|
];
|
||||||
|
|
||||||
preCheck = lib.optionalString (!(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64)) ''
|
preCheck =
|
||||||
# Disable outline atomics for rust tests on aarch64-linux.
|
lib.optionalString (!(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64)) ''
|
||||||
export RUSTFLAGS="-Ctarget-feature=-outline-atomics"
|
# 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
|
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
|
||||||
|
|
||||||
# Resolve `.NET location: Not found` errors for dotnet tests
|
# Resolve `.NET location: Not found` errors for dotnet tests
|
||||||
export DOTNET_ROOT="${dotnet-sdk.unwrapped}/share/dotnet"
|
export DOTNET_ROOT="${dotnet-sdk.unwrapped}/share/dotnet"
|
||||||
|
|
||||||
export HOME=$(mktemp -d)
|
export HOME=$(mktemp -d)
|
||||||
|
|
||||||
git init -b master
|
git init -b master
|
||||||
|
|
||||||
python -m venv --system-site-packages venv
|
python -m venv --system-site-packages venv
|
||||||
source "$PWD/venv/bin/activate"
|
source "$PWD/venv/bin/activate"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postCheck = ''
|
postCheck = ''
|
||||||
deactivate
|
deactivate
|
||||||
|
Loading…
Reference in New Issue
Block a user