mirror of
https://github.com/fablab-nea/wiki.git
synced 2024-11-22 07:42:26 +01:00
29 lines
560 B
Nix
29 lines
560 B
Nix
let
|
|
sources = import ./nix/sources.nix;
|
|
pkgs = import sources.nixpkgs {};
|
|
|
|
inherit (pkgs) lib;
|
|
in
|
|
pkgs.stdenvNoCC.mkDerivation {
|
|
name = "fablab-nea-wiki";
|
|
|
|
src = builtins.path {
|
|
name = "fablab-nea-wiki-src";
|
|
path = ./.;
|
|
filter = path: type: let
|
|
relPath = lib.removePrefix (toString ./.) path;
|
|
in
|
|
(lib.hasPrefix "/src" relPath
|
|
|| lib.hasPrefix "/assets" relPath
|
|
|| relPath == "/book.toml");
|
|
};
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
mdbook
|
|
];
|
|
|
|
buildPhase = "mdbook build -d $out";
|
|
|
|
dontInstall = true;
|
|
}
|