NaxGCC-Doc/flake.nix
Naxdy 930b2029c8
All checks were successful
Deploy Website / build (push) Successful in 1m42s
Deploy Website / deploy (push) Successful in 55s
add info about pro controller mode
2024-10-14 21:55:14 +02:00

43 lines
946 B
Nix

{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-23.11";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
in
{
packages.default = pkgs.stdenv.mkDerivation {
pname = "naxgcc-doc";
version = "1.0.0";
nativeBuildInputs = builtins.attrValues {
inherit (pkgs) mdbook mdbook-katex mdbook-toc;
};
src = self;
buildPhase = ''
mdbook build
'';
installPhase = ''
mkdir -p $out
cp -r book/* $out
'';
};
devShells.default = pkgs.mkShell {
nativeBuildInputs = builtins.attrValues {
inherit (pkgs) mdbook mdbook-katex mdbook-toc mdbook-admonish;
};
};
});
}