+ xo-flatstring

This commit is contained in:
Roland Conybeare 2025-05-10 19:16:43 -05:00
commit 219038c445
4 changed files with 57 additions and 4 deletions

View file

@ -70,8 +70,8 @@ add_subdirectory(xo-refcnt)
add_subdirectory(xo-subsys)
add_subdirectory(xo-randomgen)
add_subdirectory(xo-ordinaltree)
add_subdirectory(xo-flatstring)
#add_subdirectory(xo-pyutil)
#add_subdirectory(xo-flatstring)
#add_subdirectory(xo-reflectutil)
#add_subdirectory(xo-reflect)
#add_subdirectory(xo-pyreflect)

View file

@ -43,8 +43,8 @@ let
xo-subsys = self.callPackage pkgs/xo-subsys.nix {};
xo-randomgen = self.callPackage pkgs/xo-randomgen.nix {};
xo-ordinaltree = self.callPackage pkgs/xo-ordinaltree.nix {};
xo-flatstring = self.callPackage pkgs/xo-flatstring.nix {};
# xo-pyutil = self.callPackage pkgs/xo-pyutil.nix {};
# xo-flatstring = self.callPackage pkgs/xo-flatstring.nix {};
# xo-reflectutil = self.callPackage pkgs/xo-reflectutil.nix {};
# xo-reflect = self.callPackage pkgs/xo-reflect.nix {};
# xo-pyreflect = self.callPackage pkgs/xo-pyreflect.nix {};

53
pkgs/xo-flatstring.nix Normal file
View file

@ -0,0 +1,53 @@
{
# dependencies
lib, stdenv, cmake, catch2, doxygen,
python3Packages,
sphinx,
xo-cmake, xo-indentlog,
buildDocs ? false,
} :
stdenv.mkDerivation (finalattrs:
{
name = "xo-flatstring";
version = "1.0";
outputs = [
"out"
]
# ++ lib.optionals buildDocs [
# "doc"
# ]
;
src = ../xo-flatstring;
# guessing may need this for doxygen etc
# env.LC_ALL = "en_US.UTF-8";
cmakeFlags = ["-DCMAKE_MODULE_PATH=${xo-cmake}/share/cmake"];
doCheck = true;
propagatedBuildInputs = [ ];
nativeBuildInputs = [
cmake
catch2
doxygen
sphinx
xo-cmake
xo-indentlog
]
# + lib.optionals buildDocs [
# doxygen
# sphinx
# python3Packages.sphinx-rtd-theme
# python3Packages.breathe
# ]
;
})

View file

@ -28,7 +28,7 @@
xo-subsys,
xo-randomgen,
xo-ordinaltree,
# xo-flatstring,
xo-flatstring,
# xo-reflectutil,
# xo-ratio,
# xo-unit,
@ -63,8 +63,8 @@ buildEnv {
xo-subsys
xo-randomgen
xo-ordinaltree
xo-flatstring
# xo-pyutil
# xo-flatstring
# xo-reflectutil
# xo-reflect
# xo-pyreflect