on e94de40 help sign in
28 lines 800 B history raw
1{ n }:
2# This test makes sure that adding materialize function call with no materialized files
3# does not impact performance by reducing the ability of nix to perform concurrent
4# builds.
5let
6 inherit (import ../../. {}) pkgs;
7 hello = pkgs.haskell-nix.materialize { materialized = null; } (pkgs.runCommand "hello" {} ''
8 echo ${n}
9 echo EVENT start hello
10 sleep 2
11 echo EVENT end hello
12 echo hello > $out
13 '');
14 world = pkgs.haskell-nix.materialize { materialized = null; } (pkgs.runCommand "world" {} ''
15 echo ${n}
16 echo EVENT start world
17 sleep 3
18 echo EVENT end world
19 echo world > $out
20 '');
21 hello-world = pkgs.runCommand "hello-world" {} ''
22 cat ${hello} > $out
23 echo ' '
24 cat ${world} > $out
25 '';
26in hello-world