Commit 7939c530 authored by FliegendeWurst's avatar FliegendeWurst
Browse files

libbgcode: enable tests

parent 94084c41
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
  boost,
  catch2_3,
}:
stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
  pname = "libbgcode";
  version = "0-unstable-2025-02-19";

@@ -29,9 +29,18 @@ stdenv.mkDerivation {
    heatshrink
    zlib
    boost
  ];

  checkInputs = [
    catch2_3
  ];

  doCheck = true;

  cmakeFlags = [
    (lib.cmakeBool "LibBGCode_BUILD_TESTS" finalAttrs.finalPackage.doCheck)
  ];

  meta = with lib; {
    homepage = "https://github.com/prusa3d/libbgcode";
    description = "Prusa Block & Binary G-code reader / writer / converter";
@@ -40,4 +49,4 @@ stdenv.mkDerivation {
    maintainers = with maintainers; [ lach ];
    platforms = platforms.unix;
  };
}
})