Commit Graph

4 Commits

Author SHA1 Message Date
Félix Baylac Jacqué c1680e0c7c
flake: add meta.mainProgram
Allow us to run the program through `nix run`.
2023-01-05 16:48:38 +01:00
Félix Baylac Jacqué 97e35d20fa Rename nixglhost_wrapper -> nixglhost 2022-12-14 19:20:31 +01:00
Félix Baylac Jacqué 375148c949 Introduce a cache system
Copying & patching all the DSOs is a time consuming process (~10s on a
slow hard drive computer). We definitely don't want to go through it
for each process start, we need to introduce a cache.

For this cache, we go the concervative way. We're going to "resolve" a
DSO name (ie. find the DSO absolute path) and sha256-hash each DSO.
We're then going to compare the fingerprints to determine whether or
not we need to nuke and rebuild the DSO cache.

The cache state is persisted through a JSON file saved in the cache dir.
2022-12-05 13:33:01 +01:00
Félix Baylac Jacqué 834d7d56c9
Add Nix build infrastructure 2022-11-24 17:03:42 +01:00