-- let buildTemplate = λ ( repoName : Text ) → { image = "debian/stretch" , packages = [ "curl" ] , triggers = [ { condition = "failure" , action = "email" , to = "EuAndreh " } ] , sources = [ "https://git.sr.ht/~euandreh/" ++ repoName ] , secrets = [ "7159f943-811f-402d-bb6d-37cd764dc728" ] , tasks = [ { mapKey = "setup" , mapValue = '' curl https://nixos.org/nix/install | sh echo '. $HOME/.nix-profile/etc/profile.d/nix.sh' >> $HOME/.buildenv'' }, { mapKey = "test" , mapValue = '' cd ${repoName}/ nix-build -A test'' }, { mapKey = "publish" , mapValue = '' cd ${repoName}/ nix-build -A publishScript source env.sh ./result/bin/publish.sh'' } ] }