sexpcpp.nix 367 B

123456789101112131415161718192021222324252627282930
  1. { stdenv
  2. , lib
  3. , cmake
  4. , tinycmmc
  5. , gtest
  6. }:
  7. stdenv.mkDerivation {
  8. pname = "sexp-cpp";
  9. version = "0.1.0";
  10. src = lib.cleanSource ./.;
  11. cmakeFlags = [
  12. "-DBUILD_TESTS=ON"
  13. ]
  14. ++ (lib.optional (!stdenv.targetPlatform.isWindows) "-DUSE_CXX17=ON");
  15. doCheck = true;
  16. nativeBuildInputs = [
  17. cmake
  18. ];
  19. buildInputs = [
  20. tinycmmc
  21. gtest
  22. ];
  23. }