Unverified Commit ca27487a authored by K900's avatar K900 Committed by GitHub
Browse files

kdePackages.qmlbox2d: revendor Box2D (#443757)

parents 6743f368 72c53ae2
Loading
Loading
Loading
Loading
+0 −29
Original line number Diff line number Diff line
@@ -6,33 +6,9 @@
  fetchFromGitHub,
  cmake,
  pkg-config,
  box2d,
  unstableGitUpdater,
}:

let
  inherit (lib) cmakeBool;

  # 2.3.1 is the only supported version
  box2d' = box2d.overrideAttrs (old: rec {
    version = "2.3.1";
    src = fetchFromGitHub {
      owner = "erincatto";
      repo = "box2d";
      tag = "v${version}";
      hash = "sha256-Z2J17YMzQNZqABIa5eyJDT7BWfXveymzs+DWsrklPIs=";
    };
    patches = [ ];
    postPatch = "";
    sourceRoot = "${src.name}/Box2D";
    cmakeFlags = old.cmakeFlags or [ ] ++ [
      (cmakeBool "BOX2D_INSTALL" true)
      (cmakeBool "BOX2D_BUILD_SHARED" true)
      (cmakeBool "BOX2D_BUILD_EXAMPLES" false)
    ];
  });

in
stdenv.mkDerivation {
  pname = "qml-box2d";
  version = "0-unstable-2024-04-15";
@@ -52,15 +28,10 @@ stdenv.mkDerivation {
  ];

  buildInputs = [
    box2d'
    qtbase
    qtdeclarative
  ];

  cmakeFlags = [
    (cmakeBool "USE_SYSTEM_BOX2D" true)
  ];

  passthru = {
    updateScript = unstableGitUpdater {
      hardcodeZeroVersion = true;
+0 −2
Original line number Diff line number Diff line
@@ -171,8 +171,6 @@ makeScopeWithSplicing' {

        qmltermwidget = callPackage ../development/libraries/qmltermwidget { };

        qmlbox2d = callPackage ../development/libraries/qmlbox2d { };

        qoauth = callPackage ../development/libraries/qoauth { };

        qt5ct = callPackage ../tools/misc/qt5ct { };