mirror of
https://github.com/logos-messaging/nim-sds.git
synced 2026-05-18 07:59:54 +00:00
chore: rsubmodule
This commit is contained in:
parent
29bd306008
commit
ed837760c8
@ -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'
|
||||
|
||||
|
||||
11
flake.nix
11
flake.nix
@ -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" ''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user