summaryrefslogtreecommitdiff
path: root/hosts/atlas/cachix.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-05-29 01:15:01 -0400
committerseth <[email protected]>2023-05-29 01:30:28 -0400
commit9c71189567163ef53acfbfd7c39384683a592290 (patch)
tree42e749744ae58a167ae11aaffccd5be347d951cb /hosts/atlas/cachix.nix
parentfea13c023a58315f6d4a3645edf4ead787f8d908 (diff)
!back to hercules-ci
hydra is a little annoying to configure, especially with features like github prs
Diffstat (limited to 'hosts/atlas/cachix.nix')
-rw-r--r--hosts/atlas/cachix.nix18
1 files changed, 0 insertions, 18 deletions
diff --git a/hosts/atlas/cachix.nix b/hosts/atlas/cachix.nix
deleted file mode 100644
index 1dc1830..0000000
--- a/hosts/atlas/cachix.nix
+++ /dev/null
@@ -1,18 +0,0 @@
-{pkgs, ...}: let
- uploadToCachix = pkgs.writeScriptBin "upload-to-cachix" ''
- #!/bin/sh
- set -euf
-
- OUT_END=$(echo ''${OUT_PATHS: -10})
- if [ "$OUT_END" == "-spec.json" ]; then
- exit 0
- fi
-
- export HOME=/root
- exec ${pkgs.cachix}/bin/cachix -c /etc/cachix/cachix.dhall push getchoo $OUT_PATHS > /tmp/hydra_cachix 2>&1
- '';
-in {
- nix.extraOptions = ''
- post-build-hook = ${uploadToCachix}/bin/upload-to-cachix
- '';
-}