From 21c1a3759b7fcd2602b0c5cce6d66e0970085196 Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Sun, 6 Sep 2020 12:56:08 +0300 Subject: [PATCH] libqt5pas: init at 2.0.8 --- pkgs/development/compilers/fpc/libqt5pas.nix | 24 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/compilers/fpc/libqt5pas.nix diff --git a/pkgs/development/compilers/fpc/libqt5pas.nix b/pkgs/development/compilers/fpc/libqt5pas.nix new file mode 100644 index 00000000000..82cdd394e78 --- /dev/null +++ b/pkgs/development/compilers/fpc/libqt5pas.nix @@ -0,0 +1,24 @@ +{ stdenv, lazarus, qt5 }: + +stdenv.mkDerivation { + pname = "libqt5pas"; + inherit (lazarus) version src; + + sourceRoot = "lazarus/lcl/interfaces/qt5/cbindings"; + + postPatch = '' + substituteInPlace Qt5Pas.pro \ + --replace "target.path = \$\$[QT_INSTALL_LIBS]" "target.path = $out/lib" + ''; + + nativeBuildInputs = with qt5; [ qmake ]; + + buildInputs = with qt5; [ qtbase qtx11extras ]; + + meta = with stdenv.lib; { + description = "Free Pascal Qt5 binding library"; + homepage = "https://wiki.freepascal.org/Qt5_Interface#libqt5pas"; + maintainers = with maintainers; [ sikmir ]; + inherit (lazarus.meta) license platforms; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dac8be26161..615a53d0c21 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13932,6 +13932,8 @@ in libqalculate = callPackage ../development/libraries/libqalculate { }; + libqt5pas = callPackage ../development/compilers/fpc/libqt5pas.nix { }; + libroxml = callPackage ../development/libraries/libroxml { }; librsvg = callPackage ../development/libraries/librsvg { };