mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
Merge pull request #285553 from OPNA2608/init/quickflux
libsForQt5.quickflux: init at 1.1-unstable-2020-11-10
This commit is contained in:
commit
d4b4953d0d
64
pkgs/development/libraries/quickflux/default.nix
Normal file
64
pkgs/development/libraries/quickflux/default.nix
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, cmake
|
||||||
|
, qtbase
|
||||||
|
, qtquickcontrols2
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "quickflux";
|
||||||
|
version = "1.1-unstable-2020-11-10";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "benlau";
|
||||||
|
repo = "quickflux";
|
||||||
|
rev = "2a37acff0416c56cb349e5bc1b841b25ff1bb6f8";
|
||||||
|
hash = "sha256-c0W3Qj8kY6hMcMy/v5xhwJF9+muZjotmJqhbjqQVab0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = [
|
||||||
|
"out"
|
||||||
|
"dev"
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# Don't hardcode static linking, let stdenv decide
|
||||||
|
# Use GNUInstallDirs
|
||||||
|
substituteInPlace CMakeLists.txt \
|
||||||
|
--replace-fail 'quickflux STATIC' 'quickflux' \
|
||||||
|
--replace-fail 'DESTINATION include' 'DESTINATION ''${CMAKE_INSTALL_INCLUDEDIR}'
|
||||||
|
'';
|
||||||
|
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
qtbase
|
||||||
|
qtquickcontrols2
|
||||||
|
];
|
||||||
|
|
||||||
|
# Only a QML module
|
||||||
|
dontWrapQtApps = true;
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
|
||||||
|
];
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
# Has extra $out in includes list, breaks usage of module (complains about non-existent path in module includes)
|
||||||
|
substituteInPlace $out/lib/cmake/QuickFlux/QuickFluxTargets.cmake \
|
||||||
|
--replace "\''${_IMPORT_PREFIX}/include" '${placeholder "dev"}/include'
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A Flux implementation for QML";
|
||||||
|
homepage = "https://github.com/benlau/quickflux";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ OPNA2608 ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
})
|
@ -245,6 +245,8 @@ in (noExtraAttrs (kdeFrameworks // plasmaMobileGear // plasma5 // plasma5.thirdP
|
|||||||
|
|
||||||
quazip = callPackage ../development/libraries/quazip { };
|
quazip = callPackage ../development/libraries/quazip { };
|
||||||
|
|
||||||
|
quickflux = callPackage ../development/libraries/quickflux { };
|
||||||
|
|
||||||
qscintilla = callPackage ../development/libraries/qscintilla { };
|
qscintilla = callPackage ../development/libraries/qscintilla { };
|
||||||
|
|
||||||
qwt = callPackage ../development/libraries/qwt/default.nix { };
|
qwt = callPackage ../development/libraries/qwt/default.nix { };
|
||||||
|
Loading…
Reference in New Issue
Block a user