nixpkgs/pkgs/desktops/deepin/library/dwayland/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
996 B
Nix
Raw Normal View History

2023-01-07 09:26:03 +00:00
{ stdenv
, lib
, fetchFromGitHub
, cmake
, qtbase
, qtwayland
, wayland
, wayland-protocols
, extra-cmake-modules
, deepin-wayland-protocols
, qttools
}:
stdenv.mkDerivation rec {
pname = "dwayland";
2023-09-26 05:41:21 +00:00
version = "5.25.0";
2023-01-07 09:26:03 +00:00
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
2023-09-26 05:41:21 +00:00
hash = "sha256-XZvL3lauVW5D3r3kybpS3SiitvwEScqgYe2h9c1DuCs=";
2023-01-07 09:26:03 +00:00
};
nativeBuildInputs = [
cmake
extra-cmake-modules
qttools
];
buildInputs = [
qtbase
qtwayland
wayland
wayland-protocols
deepin-wayland-protocols
];
dontWrapQtApps = true;
2023-09-26 05:41:21 +00:00
# cmake requires that the kf5 directory must not empty
postInstall = ''
mkdir $out/include/KF5
'';
2023-01-07 09:26:03 +00:00
meta = with lib; {
description = "Qt-style API to interact with the wayland-client and wayland-server";
homepage = "https://github.com/linuxdeepin/dwayland";
license = licenses.lgpl21Plus;
platforms = platforms.linux;
maintainers = teams.deepin.members;
};
}