mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-13 03:13:10 +00:00
nix: enforce fetching of submodules in flake
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
8dd31c200b
commit
bc8f4e2cce
@ -7,6 +7,8 @@
|
||||
};
|
||||
|
||||
inputs = {
|
||||
/* Removes need for '?submodules=1` in URL since Nix 2.27. */
|
||||
self.submodules = true;
|
||||
nixpkgs.url = "github:NixOS/nixpkgs?rev=f44bd8ca21e026135061a0a57dcf3d0775b67a49";
|
||||
zerokit = {
|
||||
url = "github:vacp2p/zerokit?rev=c60e0c33fc6350a4b1c20e6b6727c44317129582";
|
||||
@ -49,7 +51,7 @@
|
||||
libwaku-android-arm64 = pkgs.callPackage ./nix/default.nix {
|
||||
inherit stableSystems;
|
||||
src = self;
|
||||
targets = ["libwaku-android-arm64"];
|
||||
targets = ["libwaku-android-arm64"];
|
||||
androidArch = "aarch64-linux-android";
|
||||
zerokitPkg = zerokit.packages.${system}.zerokit-android-arm64;
|
||||
};
|
||||
@ -60,4 +62,4 @@
|
||||
default = pkgsFor.${system}.callPackage ./nix/shell.nix {};
|
||||
});
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,7 +11,7 @@ nix develop
|
||||
|
||||
To build a Codex you can use:
|
||||
```sh
|
||||
nix build '.?submodules=1#default'
|
||||
nix build '.#default'
|
||||
```
|
||||
The `?submodules=1` part should eventually not be necessary.
|
||||
For more details see:
|
||||
@ -19,17 +19,19 @@ https://github.com/NixOS/nix/issues/4423
|
||||
|
||||
It can be also done without even cloning the repo:
|
||||
```sh
|
||||
nix build 'git+https://github.com/waku-org/nwaku?submodules=1#'
|
||||
nix build 'git+https://github.com/waku-org/nwaku'
|
||||
```
|
||||
|
||||
>:warning: For Nix versions below `2.27` you will need to add `?submodules=1` to URL.
|
||||
|
||||
## Running
|
||||
|
||||
```sh
|
||||
nix run 'git+https://github.com/waku-org/nwaku?submodules=1#''
|
||||
nix run 'git+https://github.com/waku-org/nwaku''
|
||||
```
|
||||
|
||||
## Testing
|
||||
|
||||
```sh
|
||||
nix flake check ".?submodules=1#"
|
||||
nix flake check .
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user