Skip to content

Commit

Permalink
Merge pull request #79 from rogy-AquaLab/nix
Browse files Browse the repository at this point in the history
Nixのメンテナンス
  • Loading branch information
H1rono authored Mar 15, 2024
2 parents 59b5450 + dc6d8fa commit c9d2314
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 18 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,26 @@
pkgs = import nixpkgs { inherit system; };
inherit (pkgs) lib;
pythonWithPlatformio = pkgs.python3.withPackages (ps: with ps; [ platformio ]);
buildDocs = pkgs.stdenv.mkDerivation {
pname = "omniboat_robokit";
version = "0.1.0";
src = ./.;
buildInputs = with pkgs; [ mdbook ];
buildPhase = ''
mdbook build
'';
installPhase = ''
mkdir -p $out
mv book $out/book
'';
};
in
{
devShells.default = pkgs.mkShell {
packages = [ pkgs.platformio-core pythonWithPlatformio ];
devShells.default = with pkgs; mkShell {
packages = [ platformio-core pythonWithPlatformio clang-tools_16 mdbook ];
};
packages = {
docs = buildDocs;
};
});
}

0 comments on commit c9d2314

Please sign in to comment.