forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pre-commit: Format using nixfmt-rfc-style
- Loading branch information
Showing
1 changed file
with
32 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
{ 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,24 +82,26 @@ buildPythonApplication rec { | |
"--forked" | ||
]; | ||
|
||
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 \ | ||
[email protected] [email protected] \ | ||
VIRTUALENV_NO_DOWNLOAD=1 PRE_COMMIT_NO_CONCURRENCY=1 LANG=en_US.UTF-8 | ||
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 \ | ||
[email protected] [email protected] \ | ||
VIRTUALENV_NO_DOWNLOAD=1 PRE_COMMIT_NO_CONCURRENCY=1 LANG=en_US.UTF-8 | ||
# Resolve `.NET location: Not found` errors for dotnet tests | ||
export DOTNET_ROOT="${dotnet-sdk}" | ||
# Resolve `.NET location: Not found` errors for dotnet tests | ||
export DOTNET_ROOT="${dotnet-sdk}" | ||
export HOME=$(mktemp -d) | ||
export HOME=$(mktemp -d) | ||
git init -b master | ||
git init -b master | ||
python -m venv --system-site-packages venv | ||
source "$PWD/venv/bin/activate" | ||
''; | ||
python -m venv --system-site-packages venv | ||
source "$PWD/venv/bin/activate" | ||
''; | ||
|
||
postCheck = '' | ||
deactivate | ||
|