qt6Packages.qmlbox2d: unstable-2022-08-25 -> 0-unstable-2024-04-15
This commit is contained in:
parent
ebd1be4180
commit
3ec60797a5
@ -7,20 +7,23 @@
|
|||||||
cmake,
|
cmake,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
box2d,
|
box2d,
|
||||||
|
unstableGitUpdater,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) cmakeBool;
|
inherit (lib) cmakeBool;
|
||||||
|
|
||||||
# 2.3.1 is the only supported version
|
# 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";
|
version = "2.3.1";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "erincatto";
|
owner = "erincatto";
|
||||||
repo = "box2d";
|
repo = "box2d";
|
||||||
rev = "v${version}";
|
tag = "v${version}";
|
||||||
hash = "sha256-Z2J17YMzQNZqABIa5eyJDT7BWfXveymzs+DWsrklPIs=";
|
hash = "sha256-Z2J17YMzQNZqABIa5eyJDT7BWfXveymzs+DWsrklPIs=";
|
||||||
};
|
};
|
||||||
|
patches = [ ];
|
||||||
|
postPatch = "";
|
||||||
sourceRoot = "${src.name}/Box2D";
|
sourceRoot = "${src.name}/Box2D";
|
||||||
cmakeFlags = old.cmakeFlags or [ ] ++ [
|
cmakeFlags = old.cmakeFlags or [ ] ++ [
|
||||||
(cmakeBool "BOX2D_INSTALL" true)
|
(cmakeBool "BOX2D_INSTALL" true)
|
||||||
@ -32,13 +35,13 @@ let
|
|||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "qml-box2d";
|
pname = "qml-box2d";
|
||||||
version = "unstable-2022-08-25";
|
version = "0-unstable-2024-04-15";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "qml-box2d";
|
owner = "qml-box2d";
|
||||||
repo = "qml-box2d";
|
repo = "qml-box2d";
|
||||||
rev = "0bb88a6f871eef72b3b9ded9329c15f1da1f4fd7";
|
rev = "3a85439726d1ac4d082308feba45f23859ba71e0";
|
||||||
hash = "sha256-sfSVetpHIAIujpgjvRScAkJRlQQYjQ/yQrkWvp7Yu0s=";
|
hash = "sha256-lTgzPJWSwNfPRj5Lc63C69o4ILuyhVRLvltTo5E7yq0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
dontWrapQtApps = true;
|
dontWrapQtApps = true;
|
||||||
@ -58,11 +61,17 @@ stdenv.mkDerivation {
|
|||||||
(cmakeBool "USE_SYSTEM_BOX2D" true)
|
(cmakeBool "USE_SYSTEM_BOX2D" true)
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
passthru = {
|
||||||
|
updateScript = unstableGitUpdater {
|
||||||
|
hardcodeZeroVersion = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = {
|
||||||
description = "QML plugin for Box2D engine";
|
description = "QML plugin for Box2D engine";
|
||||||
homepage = "https://github.com/qml-box2d/qml-box2d";
|
homepage = "https://github.com/qml-box2d/qml-box2d";
|
||||||
maintainers = with maintainers; [ guibou ];
|
maintainers = with lib.maintainers; [ guibou ];
|
||||||
platforms = platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
license = licenses.zlib;
|
license = lib.licenses.zlib;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user