sinara-hw-assembly/flake.nix
Egor Savkin 553fc3f198 flake add nodejs to devshell and update
Signed-off-by: Egor Savkin <es@m-labs.hk>
2024-10-17 13:47:28 +08:00

28 lines
790 B
Nix

{
description = "Sinara assembly and test instructions";
inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-24.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 pkgs.nodejs ];
};
};
}