chore: rsubmodule

This commit is contained in:
darshankabariya 2026-02-10 03:18:12 +05:30
parent 29bd306008
commit ed837760c8
No known key found for this signature in database
GPG Key ID: 9A92CCD9899F0D22
2 changed files with 13 additions and 1 deletions

View File

@ -5,6 +5,9 @@ Nim implementation of the e2e reliability protocol.
## Quick start
```bash
# Initialize vendored dependencies (run once after clone)
nix run '.#setup'
# Build the shared library
nix build '.?submodules=1#libsds'

View File

@ -71,8 +71,17 @@
default = pkgsFor.${system}.callPackage ./nix/shell.nix {};
});
# nix run '.#clean' — garbage-collect the Nix store
apps = forAllSystems (system: {
# nix run '.#setup' — initialize git submodules (run once after clone)
setup = {
type = "app";
program = toString (pkgsFor.${system}.writeShellScript "nix-setup" ''
echo "Initializing git submodules..."
git submodule update --init --recursive
echo "Done. You can now run: nix build '.?submodules=1#libsds'"
'');
};
# nix run '.#clean' — garbage-collect the Nix store
clean = {
type = "app";
program = toString (pkgsFor.${system}.writeShellScript "nix-clean" ''