Unverified Commit 5dd35d62 authored by Nikolay Korotkiy's avatar Nikolay Korotkiy Committed by GitHub
Browse files

librecad: 2.2.1.2 -> 2.2.1.3 (#479076)

parents bea58e23 17a79bb9
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -7,17 +7,18 @@
  muparser,
  pkg-config,
  qt5,
  xcbuild,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "librecad";
  version = "2.2.1.2";
  version = "2.2.1.3";

  src = fetchFromGitHub {
    owner = "LibreCAD";
    repo = "LibreCAD";
    tag = "v${finalAttrs.version}";
    hash = "sha256-a/0prti7aFIzoHXyd6NsiKx4ugW/vRXURAHBrAqyp84=";
    hash = "sha256-s9QA0YC91aziFxgnSeH4+XtQu18cSiRc0B15tyyF8b0=";
  };

  buildInputs = [
@@ -33,6 +34,9 @@ stdenv.mkDerivation (finalAttrs: {
    qt5.qmake
    qt5.qttools
    qt5.wrapQtAppsHook
  ]
  ++ lib.optionals stdenv.hostPlatform.isDarwin [
    xcbuild
  ];

  qmakeFlags = [
@@ -45,7 +49,8 @@ stdenv.mkDerivation (finalAttrs: {
      --replace-warn __DATE__ 0

    substituteInPlace librecad/src/src.pro \
      --replace-warn '$$[QT_INSTALL_BINS]' '${lib.getDev qt5.qttools}/bin'
      --replace-warn '$$[QT_INSTALL_BINS]' '${lib.getDev qt5.qttools}/bin' \
      --replace-warn '/usr/libexec/PlistBuddy' 'PlistBuddy'
    substituteInPlace librecad/src/muparser.pri \
      --replace-warn "macx|" ""
  '';