tvl-depot/nix
Profpatsch 4af195c5f2 feat(nix/yants): add restrict
`restrict` uses a predicate function to restrict a type, giving the
restricting a descriptive name in the process.

First, the wrapped type definition is checked (e.g. int) and then the
value is checked with the predicate, so the predicate can already
depend on the value being of the wrapped type.

Change-Id: Ic3edde45a8f34c31bc164414580d0a1aa5a821d5
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2312
Tested-by: BuildkiteCI
Reviewed-by: Profpatsch <mail@profpatsch.de>
Reviewed-by: tazjin <mail@tazj.in>
2021-01-03 15:53:18 +00:00
..
binify refactor(nix): use our own writeScript(Bin) 2020-06-30 00:19:27 +00:00
bufCheck feat(ci): run buf check lint in CI 2020-07-17 22:55:13 +00:00
buildGo feat(tools/depot-scanner): init project 2020-08-20 03:05:40 +00:00
buildLisp fix(buildLisp): Override LANG in sbclWith for misconfigured machines 2020-11-08 18:35:28 +00:00
buildTypedGo fix(buildTypedGo): Use builtins.baseNameOf when renaming inputs 2020-07-20 11:33:13 +00:00
emptyDerivation feat(nix/emptyDerivation) add emptyDerivation 2020-06-28 17:59:46 +00:00
escapeExecline chore(OWNERS): move Profpatsch up to nix/ 2021-01-01 19:03:15 +00:00
fetchGoModule chore(nix/fetchGoModule): don't move downloaded file 2020-08-04 22:51:51 +00:00
getBins chore(OWNERS): move Profpatsch up to nix/ 2021-01-01 19:03:15 +00:00
mergePatch feat(nix): add mergePatch 2021-01-01 19:03:02 +00:00
readTree feat(readTree): Use tree location as the value of __readTree 2020-08-31 00:46:35 +00:00
runExecline feat(nix): add runExecline.local 2021-01-02 14:24:35 +00:00
runTestsuite feat(nix/runTestsuite): add runTestsuite 2020-06-28 03:52:40 +00:00
tailscale chore: Rename pkgs->depot in all Nix file headers 2020-02-21 13:54:53 +00:00
writeElispBin chore(writeElispBin): Move from //overrides to //nix 2020-12-01 12:55:59 +00:00
writeExecline chore(OWNERS): move Profpatsch up to nix/ 2021-01-01 19:03:15 +00:00
writeScript refactor(nix): use our own writeScript(Bin) 2020-06-30 00:19:27 +00:00
writeScriptBin refactor(nix): use our own writeScript(Bin) 2020-06-30 00:19:27 +00:00
yants feat(nix/yants): add restrict 2021-01-03 15:53:18 +00:00
OWNERS chore(OWNERS): move Profpatsch up to nix/ 2021-01-01 19:03:15 +00:00