mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 13:19:10 +03:00
dtkcore: init at 5.6.3
This commit is contained in:
parent
021437ea7b
commit
919157fcbd
@ -6,6 +6,7 @@ let
|
||||
in {
|
||||
#### LIBRARIES
|
||||
dtkcommon = callPackage ./library/dtkcommon { };
|
||||
dtkcore = callPackage ./library/dtkcore { };
|
||||
};
|
||||
in
|
||||
lib.makeScope libsForQt5.newScope packages
|
||||
|
55
pkgs/desktops/deepin/library/dtkcore/default.nix
Normal file
55
pkgs/desktops/deepin/library/dtkcore/default.nix
Normal file
@ -0,0 +1,55 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, cmake
|
||||
, gsettings-qt
|
||||
, wrapQtAppsHook
|
||||
, lshw
|
||||
, dtkcommon
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dtkcore";
|
||||
version = "5.6.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "linuxdeepin";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-DEpo/eKMjtTVGEkq5JofkRNSHtTOZ1t2QNjrdulUtPQ=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/dsysinfo.cpp \
|
||||
--replace "/usr/share/deepin/distribution.info" "/etc/distribution.info" \
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
wrapQtAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gsettings-qt
|
||||
lshw
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ dtkcommon ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DDVERSION=${version}"
|
||||
"-DBUILD_DOCS=OFF"
|
||||
"-DDSG_PREFIX_PATH='/run/current-system/sw'"
|
||||
"-DMKSPECS_INSTALL_DIR=${placeholder "out"}/mkspecs/modules"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Deepin tool kit core library";
|
||||
homepage = "https://github.com/linuxdeepin/dtkcore";
|
||||
license = licenses.lgpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = teams.deepin.members;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user