tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
libsForQt5.quickflux: init at 1.1-unstable-2020-11-10
OPNA2608
2 years ago
cb77c77f
8689b489
+66
2 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
quickflux
default.nix
top-level
qt5-packages.nix
+64
pkgs/development/libraries/quickflux/default.nix
···
1
1
+
{ stdenv
2
2
+
, lib
3
3
+
, fetchFromGitHub
4
4
+
, cmake
5
5
+
, qtbase
6
6
+
, qtquickcontrols2
7
7
+
}:
8
8
+
9
9
+
stdenv.mkDerivation (finalAttrs: {
10
10
+
pname = "quickflux";
11
11
+
version = "1.1-unstable-2020-11-10";
12
12
+
13
13
+
src = fetchFromGitHub {
14
14
+
owner = "benlau";
15
15
+
repo = "quickflux";
16
16
+
rev = "2a37acff0416c56cb349e5bc1b841b25ff1bb6f8";
17
17
+
hash = "sha256-c0W3Qj8kY6hMcMy/v5xhwJF9+muZjotmJqhbjqQVab0=";
18
18
+
};
19
19
+
20
20
+
outputs = [
21
21
+
"out"
22
22
+
"dev"
23
23
+
];
24
24
+
25
25
+
postPatch = ''
26
26
+
# Don't hardcode static linking, let stdenv decide
27
27
+
# Use GNUInstallDirs
28
28
+
substituteInPlace CMakeLists.txt \
29
29
+
--replace-fail 'quickflux STATIC' 'quickflux' \
30
30
+
--replace-fail 'DESTINATION include' 'DESTINATION ''${CMAKE_INSTALL_INCLUDEDIR}'
31
31
+
'';
32
32
+
33
33
+
strictDeps = true;
34
34
+
35
35
+
nativeBuildInputs = [
36
36
+
cmake
37
37
+
];
38
38
+
39
39
+
buildInputs = [
40
40
+
qtbase
41
41
+
qtquickcontrols2
42
42
+
];
43
43
+
44
44
+
# Only a QML module
45
45
+
dontWrapQtApps = true;
46
46
+
47
47
+
cmakeFlags = [
48
48
+
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
49
49
+
];
50
50
+
51
51
+
preFixup = ''
52
52
+
# Has extra $out in includes list, breaks usage of module (complains about non-existent path in module includes)
53
53
+
substituteInPlace $out/lib/cmake/QuickFlux/QuickFluxTargets.cmake \
54
54
+
--replace "\''${_IMPORT_PREFIX}/include" '${placeholder "dev"}/include'
55
55
+
'';
56
56
+
57
57
+
meta = with lib; {
58
58
+
description = "A Flux implementation for QML";
59
59
+
homepage = "https://github.com/benlau/quickflux";
60
60
+
license = licenses.asl20;
61
61
+
maintainers = with maintainers; [ OPNA2608 ];
62
62
+
platforms = platforms.unix;
63
63
+
};
64
64
+
})
+2
pkgs/top-level/qt5-packages.nix
···
245
245
246
246
quazip = callPackage ../development/libraries/quazip { };
247
247
248
248
+
quickflux = callPackage ../development/libraries/quickflux { };
249
249
+
248
250
qscintilla = callPackage ../development/libraries/qscintilla { };
249
251
250
252
qwt = callPackage ../development/libraries/qwt/default.nix { };