on master help sign in
Add Nix flake that builds the %seax desk
commit4b10b2bca8aa10b0815de7738765fb3075344b57 authoriko <mail@iko.soy> dateTue 20 Oct 2026, 12:49 (3 days ago) parent614e1c6
3 files changed+61
.gitignore+1 flake.lock+27 flake.nix+33
.gitignore+1
@@ -6,3 +6,4 @@ zod/.http.ports
66zod/.run
77zod/.urb
88zod/.vere.lock
9+result
flake.locknew file+27
@@ -0,0 +1,27 @@
1+{
2+ "nodes": {
3+ "nixpkgs": {
4+ "locked": {
5+ "lastModified": 1792210252,
6+ "narHash": "sha256-Mh0PUaIv4nFY+8wAGonaEh8iBzwsmdNlwjVHmFg1Biw=",
7+ "owner": "NixOS",
8+ "repo": "nixpkgs",
9+ "rev": "09063bd1f2b36fd9fd793c36dfade7bd40a93dfc",
10+ "type": "github"
11+ },
12+ "original": {
13+ "owner": "NixOS",
14+ "ref": "nixos-unstable",
15+ "repo": "nixpkgs",
16+ "type": "github"
17+ }
18+ },
19+ "root": {
20+ "inputs": {
21+ "nixpkgs": "nixpkgs"
22+ }
23+ }
24+ },
25+ "root": "root",
26+ "version": 7
27+}
flake.nixnew file+33
@@ -0,0 +1,33 @@
1+{
2+ description = "seax: an Urbit search agent";
3+
4+ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
5+
6+ outputs =
7+ { self, nixpkgs }:
8+ let
9+ forAllSystems = nixpkgs.lib.genAttrs [
10+ "x86_64-linux"
11+ "aarch64-linux"
12+ "x86_64-darwin"
13+ "aarch64-darwin"
14+ ];
15+ in
16+ {
17+ packages = forAllSystems (
18+ system:
19+ let
20+ pkgs = nixpkgs.legacyPackages.${system};
21+ in
22+ {
23+ # The %seax desk, ready to be copied into a mounted desk directory
24+ # and committed with `|commit %seax`.
25+ desk = pkgs.runCommand "seax-desk" { } ''
26+ cp -r --no-preserve=mode ${./zod/seax} $out
27+ '';
28+
29+ default = self.packages.${system}.desk;
30+ }
31+ );
32+ };
33+}