From d9fb7a85c920c9332fba34087fe8527d140b65f0 Mon Sep 17 00:00:00 2001
From: Ben Sima <ben@bsima.me>
Date: Mon, 6 Jan 2025 14:27:31 -0500
Subject: Use x bit to identify buildable nix targets

This replaces the manually-curated nixTargets list in Bild.hs. Now any nix file
that has the executable bit set will be built.

I added run.sh shebangs to each of the buildable nix targets as well. When
executing these, they will succeed at building, but they have no 'out' metadata,
and so when run.sh tries to exec them, it will fail. This is fine for now.

How would one go about execing a linux tree anyway? If all of the nix targets
output something standard like a qemu image or a container, then I could have a
standard wrapper that calls the image and starts the system. That might be the
ideal way to have a runnable nix target. But this would require rethinking my
infrastructure and how to deploy things, so I can't quite do that yet.
---
 Biz/Dragons/Analysis.nix | 1 +
 1 file changed, 1 insertion(+)
 mode change 100644 => 100755 Biz/Dragons/Analysis.nix

(limited to 'Biz')

diff --git a/Biz/Dragons/Analysis.nix b/Biz/Dragons/Analysis.nix
old mode 100644
new mode 100755
index 1715610..5ea8713
--- a/Biz/Dragons/Analysis.nix
+++ b/Biz/Dragons/Analysis.nix
@@ -1,3 +1,4 @@
+#!/usr/bin/env run.sh
 {bild}:
 # Run this like so:
 #
-- 
cgit v1.2.3