mirror of
https://github.com/NixOS/nix
synced 2025-06-25 02:21:16 +02:00
This does not include any automation for the release branch, but is based on the configuration of https://github.com/NixOS/nix/pull/12349 pre-commit run -a nixfmt-rfc-style
14 lines
267 B
Nix
14 lines
267 B
Nix
# A derivation that would certainly fail if several builders tried to
|
|
# build it at once.
|
|
|
|
with import ./config.nix;
|
|
|
|
mkDerivation {
|
|
name = "simple";
|
|
buildCommand = ''
|
|
mkdir $out
|
|
echo bar >> $out/foo
|
|
sleep 3
|
|
[[ "$(cat $out/foo)" == bar ]]
|
|
'';
|
|
}
|