crane/pkgs/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
466 B
Nix
Raw Permalink Normal View History

{ 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
'';
2023-04-02 21:19:35 +03:00
crane-utils = myLib.callPackage ./crane-utils { };
}