tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
lomiri.cmake-extras: init at unstable-2022-11-21
OPNA2608
2 years ago
8b3e7893
089a24b2
+65
3 changed files
expand all
collapse all
unified
split
pkgs
desktops
lomiri
default.nix
development
cmake-extras
default.nix
top-level
all-packages.nix
+14
pkgs/desktops/lomiri/default.nix
···
1
1
+
{ lib
2
2
+
, pkgs
3
3
+
, libsForQt5
4
4
+
}:
5
5
+
6
6
+
let
7
7
+
packages = self: let
8
8
+
inherit (self) callPackage;
9
9
+
in {
10
10
+
#### Development tools / libraries
11
11
+
cmake-extras = callPackage ./development/cmake-extras { };
12
12
+
};
13
13
+
in
14
14
+
lib.makeScope libsForQt5.newScope packages
+49
pkgs/desktops/lomiri/development/cmake-extras/default.nix
···
1
1
+
{ stdenvNoCC
2
2
+
, lib
3
3
+
, fetchFromGitLab
4
4
+
, cmake
5
5
+
, qtbase
6
6
+
}:
7
7
+
8
8
+
stdenvNoCC.mkDerivation {
9
9
+
pname = "cmake-extras";
10
10
+
version = "unstable-2022-11-21";
11
11
+
12
12
+
src = fetchFromGitLab {
13
13
+
owner = "ubports";
14
14
+
repo = "development/core/cmake-extras";
15
15
+
rev = "99aab4514ee182cb7a94821b4b51e4d8cb9a82ef";
16
16
+
hash = "sha256-axj5QxgDrHy0HiZkfrbm22hVvSCKkWFoQC8MdQMm9tg=";
17
17
+
};
18
18
+
19
19
+
postPatch = ''
20
20
+
# We have nothing to build here, no need to depend on a C compiler
21
21
+
substituteInPlace CMakeLists.txt \
22
22
+
--replace 'project(cmake-extras)' 'project(cmake-extras NONE)'
23
23
+
24
24
+
# This is in a function that reverse dependencies use to determine where to install their files to
25
25
+
substituteInPlace src/QmlPlugins/QmlPluginsConfig.cmake \
26
26
+
--replace "\''${CMAKE_INSTALL_LIBDIR}/qt5/qml" "\''${CMAKE_INSTALL_PREFIX}/${qtbase.qtQmlPrefix}"
27
27
+
'';
28
28
+
29
29
+
strictDeps = true;
30
30
+
31
31
+
# Produces no binaries
32
32
+
dontWrapQtApps = true;
33
33
+
34
34
+
nativeBuildInputs = [
35
35
+
cmake
36
36
+
];
37
37
+
38
38
+
buildInputs = [
39
39
+
qtbase
40
40
+
];
41
41
+
42
42
+
meta = with lib; {
43
43
+
description = "A collection of add-ons for the CMake build tool";
44
44
+
homepage = "https://gitlab.com/ubports/development/core/cmake-extras/";
45
45
+
license = licenses.gpl3Only;
46
46
+
maintainers = teams.lomiri.members;
47
47
+
platforms = platforms.all;
48
48
+
};
49
49
+
}
+2
pkgs/top-level/all-packages.nix
···
37582
37582
37583
37583
gnustep = recurseIntoAttrs (callPackage ../desktops/gnustep { });
37584
37584
37585
37585
+
lomiri = recurseIntoAttrs (callPackage ../desktops/lomiri { });
37586
37586
+
37585
37587
lumina = recurseIntoAttrs (callPackage ../desktops/lumina { });
37586
37588
37587
37589
### DESKTOPS/LXDE