Commit 3ec60797 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

qt6Packages.qmlbox2d: unstable-2022-08-25 -> 0-unstable-2024-04-15

parent ebd1be41
Loading
Loading
Loading
Loading
+18 −9
Original line number Diff line number Diff line
@@ -7,20 +7,23 @@
  cmake,
  pkg-config,
  box2d,
  unstableGitUpdater,
}:

let
  inherit (lib) cmakeBool;

  # 2.3.1 is the only supported version
  box2d' = (box2d.override { settingsFile = "Box2D/Common/b2Settings.h"; }).overrideAttrs (old: rec {
  box2d' = box2d.overrideAttrs (old: rec {
    version = "2.3.1";
    src = fetchFromGitHub {
      owner = "erincatto";
      repo = "box2d";
      rev = "v${version}";
      tag = "v${version}";
      hash = "sha256-Z2J17YMzQNZqABIa5eyJDT7BWfXveymzs+DWsrklPIs=";
    };
    patches = [ ];
    postPatch = "";
    sourceRoot = "${src.name}/Box2D";
    cmakeFlags = old.cmakeFlags or [ ] ++ [
      (cmakeBool "BOX2D_INSTALL" true)
@@ -32,13 +35,13 @@ let
in
stdenv.mkDerivation {
  pname = "qml-box2d";
  version = "unstable-2022-08-25";
  version = "0-unstable-2024-04-15";

  src = fetchFromGitHub {
    owner = "qml-box2d";
    repo = "qml-box2d";
    rev = "0bb88a6f871eef72b3b9ded9329c15f1da1f4fd7";
    hash = "sha256-sfSVetpHIAIujpgjvRScAkJRlQQYjQ/yQrkWvp7Yu0s=";
    rev = "3a85439726d1ac4d082308feba45f23859ba71e0";
    hash = "sha256-lTgzPJWSwNfPRj5Lc63C69o4ILuyhVRLvltTo5E7yq0=";
  };

  dontWrapQtApps = true;
@@ -58,11 +61,17 @@ stdenv.mkDerivation {
    (cmakeBool "USE_SYSTEM_BOX2D" true)
  ];

  meta = with lib; {
  passthru = {
    updateScript = unstableGitUpdater {
      hardcodeZeroVersion = true;
    };
  };

  meta = {
    description = "QML plugin for Box2D engine";
    homepage = "https://github.com/qml-box2d/qml-box2d";
    maintainers = with maintainers; [ guibou ];
    platforms = platforms.linux;
    license = licenses.zlib;
    maintainers = with lib.maintainers; [ guibou ];
    platforms = lib.platforms.linux;
    license = lib.licenses.zlib;
  };
}