Unverified Commit 98b63b90 authored by Grimmauld's avatar Grimmauld Committed by GitHub
Browse files

libsForQt5.soqt: 2020-12-05-unstable -> 1.6.4; migrate to qt6 and pkgs/by-name (#447375)

parents 7491fd75 b4999b22
Loading
Loading
Loading
Loading
+53 −0
Original line number Diff line number Diff line
{
  fetchFromGitHub,
  lib,
  stdenv,
  coin3d,
  qtbase,
  fetchFromGitHub,
  cmake,
  pkg-config,
  coin3d,
  qt6,
  testers,
  nix-update-script,
}:

stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
  pname = "soqt";
  version = "2020-12-05-unstable";
  version = "1.6.4";

  src = fetchFromGitHub {
    owner = "coin3d";
    repo = "soqt";
    # rev = "SoQt-${version}";
    rev = "fb8f655632bb9c9c60e0ff9fa69a5ba22d3ff99d";
    hash = "sha256-YoBq8P3Tag2Sepqxf/qIcJDBhH/gladBmDUj78aacZs=";
    tag = "v${finalAttrs.version}";
    hash = "sha256-H904mFfrELjB6ZVhypaKJd+pu5y+aVV4foryrsN7IqE=";
    fetchSubmodules = true;
  };

  buildInputs = [
    coin3d
    qtbase
  ];

  nativeBuildInputs = [
    cmake
    pkg-config
  ];

  propagatedBuildInputs = [
    coin3d
    qt6.qtbase
  ];

  dontWrapQtApps = true;

  meta = with lib; {
  passthru = {
    tests = {
      cmake-config = testers.hasCmakeConfigModules {
        moduleNames = [ "soqt" ];
        package = finalAttrs.finalPackage;
        nativeBuildInputs = [ qt6.wrapQtAppsHook ];
      };
    };
    updateScript = nix-update-script { };
  };

  meta = {
    homepage = "https://github.com/coin3d/soqt";
    license = licenses.bsd3;
    license = lib.licenses.bsd3;
    description = "Glue between Coin high-level 3D visualization library and Qt";
    maintainers = with maintainers; [ ];
    platforms = platforms.linux;
    maintainers = with lib.maintainers; [ ];
    platforms = lib.platforms.unix;
  };
}
})
+20 −41
Original line number Diff line number Diff line
@@ -2,17 +2,19 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pkgs,
  qtbase,
  qmake,
  python,
  pythonRecompileBytecodeHook,
  swig,
  cmake,
  coin3d,
  soqt,
  libGLU,
}:

buildPythonPackage rec {
  pname = "pivy";
  version = "0.6.10";
  pyproject = true;
  format = "other";

  src = fetchFromGitHub {
    owner = "coin3d";
@@ -21,54 +23,31 @@ buildPythonPackage rec {
    hash = "sha256-DRA4NTAHg2iB/D1CU9pJEpsZwX9GW3X5gpxbIwP54Ko=";
  };

  build-system = [ setuptools ];

  dontUseCmakeConfigure = true;

  nativeBuildInputs = with pkgs; [
  nativeBuildInputs = [
    swig
    qmake
    cmake
    pythonRecompileBytecodeHook
  ];

  buildInputs =
    with pkgs;
    with xorg;
    [
  buildInputs = [
    coin3d
    soqt
      qtbase
      libGLU
      libGL
      libXi
      libXext
      libSM
      libICE
      libX11
    libGLU # dummy buildInput that provides missing header <GL/glu.h>
  ];

  env.NIX_CFLAGS_COMPILE = toString [
    "-I${qtbase.dev}/include/QtCore"
    "-I${qtbase.dev}/include/QtGui"
    "-I${qtbase.dev}/include/QtOpenGL"
    "-I${qtbase.dev}/include/QtWidgets"
  cmakeFlags = [
    (lib.cmakeBool "PIVY_USE_QT6" true)
    (lib.cmakeFeature "PIVY_Python_SITEARCH" "${placeholder "out"}/${python.sitePackages}")
  ];

  dontUseQmakeConfigure = true;
  dontWrapQtApps = true;
  doCheck = false;

  postPatch = ''
    substituteInPlace distutils_cmake/CMakeLists.txt --replace \$'{SoQt_INCLUDE_DIRS}' \
      \$'{Coin_INCLUDE_DIR}'\;\$'{SoQt_INCLUDE_DIRS}'
  '';

  pythonImportsCheck = [ "pivy" ];

  meta = with lib; {
  meta = {
    homepage = "https://github.com/coin3d/pivy/";
    description = "Python binding for Coin";
    license = licenses.bsd0;
    maintainers = with maintainers; [ ];
    license = lib.licenses.bsd0;
    maintainers = with lib.maintainers; [ ];
  };
}
+1 −4
Original line number Diff line number Diff line
@@ -11858,10 +11858,7 @@ self: super: with self; {
  piqp = callPackage ../development/python-modules/piqp { };
  pivy = callPackage ../development/python-modules/pivy {
    inherit (pkgs.qt5) qtbase qmake;
    inherit (pkgs.libsForQt5) soqt;
  };
  pivy = callPackage ../development/python-modules/pivy { };
  pixcat = callPackage ../development/python-modules/pixcat { };
+0 −2
Original line number Diff line number Diff line
@@ -215,8 +215,6 @@ makeScopeWithSplicing' {
          callPackage ../development/libraries/sailfish-access-control-plugin
            { };

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

        telepathy = callPackage ../development/libraries/telepathy/qt { };

        qtwebkit-plugins = callPackage ../development/libraries/qtwebkit-plugins { };