gunk-dev/the-valley

derive.nix

source0d05e7f48050main's published tip history
1.1 KiB
1# The deriver of required checks (derive/), and the model of the composed
2# policy it derives from (composed/), held by the deriver's own tests.
3{
4 packages,
5 ...
6}:
7{
8 # Run in the package's checkPhase with go vet: the glob language by
9 # example, a diff's paths read from git diff -z and every cut of it
10 # refused, and the deriver's rules over a policy written in the test.
11 # Then the deriver held to bin/valley's: both run over the repository's
12 # own policy, the example policies and paths drawn from a fixed seed, and
13 # each must require the same checks, for the same classes, with the same
14 # pins and costs, in the same carry mode, with the same paths
15 # unclassified. Each glob is held to glob_ere and each diff reading to
16 # diff_paths, run by bash out of bin/valley itself. Both refuse what cue
17 # vet rejects and a schema older than either. Where bin/valley is wrong
18 # (bd-11e0e4d), the test records what each answers: a path holding a
19 # newline, a class added by refining policy that requires an undefined
20 # check, and a class named unclassified.
21 derive-unit = packages.derive;
22}