on master help sign in
Add a desk output to the flake, with default pointing at it
commit7bd213ef50331e5c1a483519beab6a5411300d61 authoriko <mail@iko.soy> dateWed 21 Oct 2026, 14:04 (3 days ago) parent868b75a
2 files changed+14−9
README.md+4−4 flake.nix+10−5
README.md+4−4
@@ -55,9 +55,9 @@ belongs to Landscape.
5555
5656## Building with Nix
5757
58−`flake.nix` has one output: `packages.<system>.default`, the desk. Building it
59−copies `desk/` into the Nix store; nothing is compiled, because Clay compiles
60−the Hoon on your ship when you commit the desk.
58+`flake.nix` has one output: the desk, `packages.<system>.desk`, which is also
59+the default package. Building it copies `desk/` into the Nix store; nothing is
60+compiled, because Clay compiles the Hoon on your ship when you commit the desk.
6161
6262| Command | Builds |
6363|---|---|
@@ -88,7 +88,7 @@ result/
8888 ```nix
8989 inputs.shelf.url = "github:iko-soy/shelf";
9090 # …
91− shelf.packages.${system}.default
91+ shelf.packages.${system}.desk
9292 ```
9393
9494## Update
flake.nix+10−5
@@ -10,10 +10,15 @@
1010 in
1111 {
1212 # The desk: copy it into a mounted %shelf desk and |commit it.
13− packages = forAllSystems (pkgs: {
14− default = pkgs.runCommandLocal "shelf-desk" { } ''
15− cp -r ${./desk} $out
16− '';
17− });
13+ packages = forAllSystems (pkgs:
14+ let
15+ desk = pkgs.runCommandLocal "shelf-desk" { } ''
16+ cp -r ${./desk} $out
17+ '';
18+ in
19+ {
20+ inherit desk;
21+ default = desk;
22+ });
1823 };
1924}