Commit Graph

36 Commits

Author SHA1 Message Date
4010e33395 exec: increase default wait delay
Should avoid killing Nix command whenever possible.
2025-07-23 10:55:42 +09:00
4787f51d84 exec: interrupt with delayed kill
This gives nix a chance to gracefully exit.
v0.1.4
2025-07-21 00:33:04 +09:00
e2299a57d2 cmd/nix-tool: flag for idle priority
Mainly for usability. This is often ran on a workstation.
v0.1.3
2025-07-20 19:17:08 +09:00
0d5e7f61fc cmd/nix-tool: disable binary cache for chroot store v0.1.2 2025-07-20 14:16:00 +09:00
5f8b5bcb3d treewide: remove sample store paths
This should finally build on nix.
v0.1.1
2025-07-20 04:22:28 +09:00
66a4079114 treewide: compress testdata
This significantly improves handling by reducing file size. This is also part of an effort of getting this to build on nix itself.
2025-07-20 04:12:26 +09:00
55933ccfb3 cmd/nix-tool: pass --store via extraArgs
Sleepy me forgot about passing extraArgs :c
2025-07-20 03:27:19 +09:00
d6d327cb91 cmd/nix-tool: override context for chroot store v0.1.0 2025-07-20 02:15:18 +09:00
0956524d0c cmd/nix-tool/resolve: build before evaluate
This avoids many problems that come up when resolving on an empty store. All paths are built later on anyway.
2025-07-20 02:14:22 +09:00
3deb8862ba cmd/nix-tool: improve message formatting 2025-07-20 02:02:22 +09:00
9a210d9a7c cmd/nix-tool: remove unused internal commands
These are used for validation at the time of implementing these library functions.
2025-07-20 01:39:23 +09:00
0e4653332c cmd/nixbuild: rename to nix-tool 2025-07-20 01:38:35 +09:00
270298c73d cmd/nixbuild: implement cache command
The tool this entire library is created for.
2025-07-20 01:33:10 +09:00
149b9c6a2a copy: wrap copy from stdin 2025-07-20 00:51:45 +09:00
cb39dc5fcf sign: wrap signing from stdin 2025-07-19 23:12:17 +09:00
799fe0a610 apply MIT license
pkg.go.dev is not happy with WTFPL
2025-07-19 03:05:35 +09:00
fdc969afb6 treewide: migrate to gensokyo.uk/nix 2025-07-19 02:33:24 +09:00
92ac3275c1 cmd/nixbuild: instantiated deduplicate stat
Use case for this came up while writing tests.
2025-07-18 21:19:16 +09:00
d3a8aed237 exec: replace global state with interface
This is cleaner, and finally enables writing tests for the nix invoking functions.
2025-07-17 16:53:00 +09:00
d4572eb50f cmd/nixbuild: implement dependency resolver
This replaces the bash implementation of this hack.
2025-07-15 04:44:55 +09:00
cbbec15246 derivation: collect store paths
The implementation of the main hack this library does.
2025-07-15 03:49:16 +09:00
5c632a9ad8 derivation: parse nix derivation show
This time it's JSON, and actual intended behaviour.
2025-07-15 01:51:55 +09:00
61c6b5d78e treewide: use internal pipe for nix command
This essentially does the same thing underneath the hood but the API is less painful to use, and it makes more sense in this use case.
2025-07-15 01:14:27 +09:00
b79eeea0db instantiated: rename Drv method to Instantiated
This avoids confusion with actual derivation structs.
2025-07-14 22:34:44 +09:00
1c968c1e36 build: wrap nix build
These things currently require manual testing unfortunately since writing a nix stub would take a long time.
2025-07-14 22:10:48 +09:00
f052e0b98a format: nix command constants 2025-07-14 21:45:55 +09:00
7312efa1fc apply WTFPL license
This project doesn't deserve any other license :3
2025-07-14 20:17:28 +09:00
d470e770ff instantiated: embed decoder in evaluator
This makes it easier to directly parse nix output via the decoder interface.
2025-07-14 20:03:30 +09:00
c1cdd0b559 instantiated: attach decode function to decoder 2025-07-14 19:05:16 +09:00
93f447163d instantiated: implement decoding iterator 2025-07-14 19:00:11 +09:00
edac902c7f format: wrap nix command 2025-07-14 18:26:49 +09:00
a9d0130474 cmd/nixbuild: implement command frontend 2025-07-14 04:36:06 +09:00
beff1e98d8 instantiated: expose stderr output 2025-07-14 04:34:53 +09:00
826860697d instantiated: connect stdout 2025-07-14 04:12:30 +09:00
2b5a2f26db instantiated: parse instantiated messages 2025-07-14 02:52:25 +09:00
7a6404165e format: format nixos installable 2025-07-13 23:55:04 +09:00