mirror of
https://github.com/status-im/docs.status.network.git
synced 2025-01-23 23:59:36 +00:00
640798f1ad
To be able to deploy site we need a pipeline to build it and publish it to a branch from which our caddy-git service will pull for changes. All of this will be done using nix flake to ease out the build/development process. Referenced issue: https://github.com/status-im/status-network-docs/issues/1 Signed-off-by: markoburcul <marko@status.im>
33 lines
805 B
Nix
33 lines
805 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-24.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; [
|
|
yarn # 1.22.22
|
|
git # 2.44.1
|
|
openssh # 9.7p1
|
|
nodejs_20 # v20.15.1
|
|
ghp-import # 2.1.0
|
|
];
|
|
};
|
|
});
|
|
};
|
|
} |