refactor: Replace some uses of builtins.toFile with pkgs.writeText

I'm looking at removing some of these because they can cause
unnecessary build steps during CI pipeline generation.

Change-Id: I84742968918090c050d2eedab8a1b42692632a42
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2655
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2021-03-25 20:14:48 +02:00 committed by tazjin
parent d01d6bb63d
commit d34c527372
3 changed files with 8 additions and 10 deletions

View file

@ -2,9 +2,7 @@
# Buildkite, Sourcegraph reindexing and other maintenance tasks.
{ depot, ... }:
let
inherit (builtins) toFile toJSON;
in depot.nix.buildGo.program {
depot.nix.buildGo.program {
name = "besadii";
srcs = [ ./main.go ];
}