assembly/flake.nix
Egor Savkin a4c9061934 Add direct connection manual and update flake
Signed-off-by: Egor Savkin <es@m-labs.hk>
2023-10-25 11:08:35 +08:00

28 lines
776 B
Nix

{
description = "Sinara assembly and test instructions";
inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-23.05;
outputs = { self, nixpkgs }:
let pkgs = import nixpkgs { system = "x86_64-linux"; };
in {
packages.x86_64-linux.default =
# Notice the reference to nixpkgs here.
with import nixpkgs { system = "x86_64-linux"; };
stdenv.mkDerivation {
name = "book";
src = self;
buildInputs = with pkgs; [ pkgs.mdbook ];
buildPhase = "mdbook build";
installPhase = "mkdir -p $out/book; cp -R book $out/";
};
devShell.x86_64-linux = pkgs.mkShell {
name = "sinara-assembly-dev-shell";
buildInputs = with pkgs; [pkgs.mdbook];
};
};
}