mirror of
https://gitlab.com/d3tn/ud3tn.git
synced 2026-08-13 12:33:27 +02:00
Uses pandoc to convert the manpage into a markdown document and add it to the mkdocs documentation. Signed-off-by: Maximilian Nitsch <maximilian.nitsch@d3tn.com>
41 lines
993 B
Nix
41 lines
993 B
Nix
# SPDX-License-Identifier: BSD-3-Clause OR Apache-2.0
|
|
|
|
{ pkgs, self, ... }:
|
|
|
|
pkgs.mkShell rec {
|
|
|
|
hardeningDisable = [ "all" ];
|
|
|
|
# Derive build inputs from custom packages
|
|
inputsFrom = [
|
|
self.packages.${pkgs.system}.pyd3tn
|
|
self.packages.${pkgs.system}.python-ud3tn-utils
|
|
self.packages.${pkgs.system}.ud3tn
|
|
self.packages.${pkgs.system}.mkdocs-html
|
|
];
|
|
|
|
# Prepare a virtual python enviroment for development
|
|
venvDir = "./.venv";
|
|
buildInputs = with pkgs.python3Packages; [ python venvShellHook ];
|
|
postVenvCreation = ''
|
|
unset SOURCE_DATE_EPOCH
|
|
pip install -e ./pyd3tn
|
|
pip install -e ./python-ud3tn-utils
|
|
'';
|
|
postShellHook = "unset SOURCE_DATE_EPOCH";
|
|
|
|
packages = with pkgs; [
|
|
clang-tools
|
|
cppcheck
|
|
jansson
|
|
llvmPackages.libcxxClang
|
|
nixpkgs-fmt
|
|
pandoc
|
|
protobuf
|
|
protoc-gen-doc
|
|
python3Packages.flake8
|
|
python3Packages.pytest
|
|
python3Packages.pytest-asyncio
|
|
sqlite
|
|
] ++ lib.optional (stdenv.isLinux) gdb;
|
|
}
|