mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-02 05:43:08 +00:00
Add nix flake and use it in the pipeline for reliability and reproducability. Referenced issue: * https://github.com/status-im/infra-ci/issues/188
34 lines
808 B
Nix
34 lines
808 B
Nix
{
|
|
description = "Nix flake development shell.";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-25.05";
|
|
};
|
|
|
|
outputs =
|
|
{ self, nixpkgs }:
|
|
let
|
|
supportedSystems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
"x86_64-darwin"
|
|
"aarch64-darwin"
|
|
];
|
|
forEachSystem = nixpkgs.lib.genAttrs supportedSystems;
|
|
pkgsFor = forEachSystem (system: import nixpkgs { inherit system; });
|
|
in
|
|
rec {
|
|
formatter = forEachSystem (system: pkgsFor.${system}.nixpkgs-fmt);
|
|
|
|
devShells = forEachSystem (system: {
|
|
default = pkgsFor.${system}.mkShellNoCC {
|
|
packages = with pkgsFor.${system}.buildPackages; [
|
|
git # 2.44.1
|
|
openssh # 9.7p1
|
|
nodejs_20 # v20.15.1
|
|
];
|
|
};
|
|
});
|
|
};
|
|
}
|