about summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-11-15T23·25+0000
committerVincent Ambo <tazjin@google.com>2019-11-15T23·25+0000
commit45d63bce1728589836079ecbce83c08f8220845a (patch)
treef52007db7475f2ed3d85fec5236bc9380335af00 /tools
parentc1c379848a19a31de8febb1385c7b9e4d2a474a3 (diff)
feat(nix): Filter projects that should be built by CI
Instead of specifying CI projects manually, this filters them to move
the CI configuration into the derivations `meta` attributes.
Diffstat (limited to 'tools')
-rw-r--r--tools/blog_cli/default.nix2
-rw-r--r--tools/kms_pass.nix (renamed from tools/kms_pass/default.nix)4
2 files changed, 4 insertions, 2 deletions
diff --git a/tools/blog_cli/default.nix b/tools/blog_cli/default.nix
index 8113c933601e..717daec86b9f 100644
--- a/tools/blog_cli/default.nix
+++ b/tools/blog_cli/default.nix
@@ -5,4 +5,6 @@ pkgs.buildGoPackage {
   goPackagePath = "github.com/tazjin/personal/blog_cli";
   src = ./.;
   goDeps = ./deps.nix;
+
+  meta.enableCI = true;
 }
diff --git a/tools/kms_pass/default.nix b/tools/kms_pass.nix
index 113db30224de..7005697daaf8 100644
--- a/tools/kms_pass/default.nix
+++ b/tools/kms_pass.nix
@@ -9,7 +9,7 @@
 { pkgs, kms, ... }:
 
 let inherit (pkgs) google-cloud-sdk tree writeShellScriptBin;
-in writeShellScriptBin "pass" ''
+in (writeShellScriptBin "pass" ''
   set -eo pipefail
 
   CMD="$1"
@@ -57,4 +57,4 @@ in writeShellScriptBin "pass" ''
       exit 1
       ;;
   esac
-''
+'') // { meta.enableCI = true; }