mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-25 21:42:20 +03:00
ef80ead953
--------- Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
23 lines
466 B
Nix
23 lines
466 B
Nix
{ pkgs, myLib }:
|
|
|
|
{
|
|
book =
|
|
let
|
|
inherit (pkgs) lib;
|
|
cleanedSrc = lib.fileset.toSource {
|
|
root = ./..;
|
|
fileset = lib.fileset.unions [
|
|
./../docs
|
|
./../examples
|
|
./../README.md
|
|
./../CHANGELOG.md
|
|
];
|
|
};
|
|
in
|
|
pkgs.runCommand "crane-book" { } ''
|
|
${pkgs.mdbook}/bin/mdbook build --dest-dir $out ${cleanedSrc}/docs
|
|
'';
|
|
|
|
crane-utils = myLib.callPackage ./crane-utils { };
|
|
}
|