63fe828120
Some of the improvements here include: * rocksdb can actually use jemalloc now instead of just pulling in a second rocksdb for no reason * "complement-runtime" factored back out into shell file * complement image no longer uses `mkDerivation` for `copyToRoot` because that's what `buildEnv` is for * complement image no longer sets `SERVER_NAME`, complement already does that * all packages were factored out into `callPackage`-able files for use with a custom `lib.makeScope pkgs.newScope` * new version of `mkPackage` has options that are easier to use and override such as `features`
31 lines
398 B
Nix
31 lines
398 B
Nix
{ inputs
|
|
|
|
# Dependencies
|
|
, main
|
|
, mdbook
|
|
, stdenv
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
inherit (main) pname version;
|
|
|
|
src = inputs.nix-filter {
|
|
root = inputs.self;
|
|
include = [
|
|
"book.toml"
|
|
"conduwuit-example.toml"
|
|
"README.md"
|
|
"debian/README.md"
|
|
"docs"
|
|
];
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
mdbook
|
|
];
|
|
|
|
buildPhase = ''
|
|
mdbook build
|
|
mv public $out
|
|
'';
|
|
}
|