mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 09:14:28 +00:00
lomiri.cmake-extras: init at unstable-2022-11-21
This commit is contained in:
parent
089a24b2e3
commit
8b3e7893ac
14
pkgs/desktops/lomiri/default.nix
Normal file
14
pkgs/desktops/lomiri/default.nix
Normal file
@ -0,0 +1,14 @@
|
||||
{ lib
|
||||
, pkgs
|
||||
, libsForQt5
|
||||
}:
|
||||
|
||||
let
|
||||
packages = self: let
|
||||
inherit (self) callPackage;
|
||||
in {
|
||||
#### Development tools / libraries
|
||||
cmake-extras = callPackage ./development/cmake-extras { };
|
||||
};
|
||||
in
|
||||
lib.makeScope libsForQt5.newScope packages
|
49
pkgs/desktops/lomiri/development/cmake-extras/default.nix
Normal file
49
pkgs/desktops/lomiri/development/cmake-extras/default.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{ stdenvNoCC
|
||||
, lib
|
||||
, fetchFromGitLab
|
||||
, cmake
|
||||
, qtbase
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "cmake-extras";
|
||||
version = "unstable-2022-11-21";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "ubports";
|
||||
repo = "development/core/cmake-extras";
|
||||
rev = "99aab4514ee182cb7a94821b4b51e4d8cb9a82ef";
|
||||
hash = "sha256-axj5QxgDrHy0HiZkfrbm22hVvSCKkWFoQC8MdQMm9tg=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# We have nothing to build here, no need to depend on a C compiler
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace 'project(cmake-extras)' 'project(cmake-extras NONE)'
|
||||
|
||||
# This is in a function that reverse dependencies use to determine where to install their files to
|
||||
substituteInPlace src/QmlPlugins/QmlPluginsConfig.cmake \
|
||||
--replace "\''${CMAKE_INSTALL_LIBDIR}/qt5/qml" "\''${CMAKE_INSTALL_PREFIX}/${qtbase.qtQmlPrefix}"
|
||||
'';
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
# Produces no binaries
|
||||
dontWrapQtApps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
qtbase
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A collection of add-ons for the CMake build tool";
|
||||
homepage = "https://gitlab.com/ubports/development/core/cmake-extras/";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = teams.lomiri.members;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
@ -37582,6 +37582,8 @@ with pkgs;
|
||||
|
||||
gnustep = recurseIntoAttrs (callPackage ../desktops/gnustep { });
|
||||
|
||||
lomiri = recurseIntoAttrs (callPackage ../desktops/lomiri { });
|
||||
|
||||
lumina = recurseIntoAttrs (callPackage ../desktops/lumina { });
|
||||
|
||||
### DESKTOPS/LXDE
|
||||
|
Loading…
Reference in New Issue
Block a user