This commit is contained in:
parent
1cef49d4c1
commit
2dee3f5f68
6 changed files with 54 additions and 2 deletions
45
pkgs/xo-expression2.nix
Normal file
45
pkgs/xo-expression2.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
# nixpkgs dependencies
|
||||
lib, stdenv, cmake, catch2,
|
||||
|
||||
# xo dependencies
|
||||
xo-gc,
|
||||
xo-type,
|
||||
xo-reflect,
|
||||
xo-procedure2,
|
||||
xo-printable2,
|
||||
xo-flatstring,
|
||||
xo-subsys,
|
||||
xo-indentlog,
|
||||
xo-cmake,
|
||||
|
||||
# config arguments
|
||||
doCheck ? true
|
||||
} :
|
||||
|
||||
stdenv.mmkDerivation (finalattrs :
|
||||
{
|
||||
name = "xo-expression2";
|
||||
|
||||
src = ../xo-expression2;
|
||||
|
||||
cmakeFlags = ["-DCMAKE_MODULE_PATH=${xo-cmake}/share/cmake"]
|
||||
++ lib.optionals doCheck ["-DENABLE_TESTING=1"];
|
||||
|
||||
inherit doCheck;
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake catch2
|
||||
xo-cmake
|
||||
];
|
||||
propagatedBuildInputs = [
|
||||
xo-gc
|
||||
xo-type
|
||||
xo-reflect
|
||||
xo-procedure2
|
||||
xo-printable2
|
||||
xo-flatstring
|
||||
xo-subsys
|
||||
xo-indentlog
|
||||
];
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue