depot/third_party/nixpkgs/pkgs/applications/misc/maliit-framework/default.nix

79 lines
1.4 KiB
Nix
Raw Normal View History

{ mkDerivation
, lib
, fetchFromGitHub
, fetchpatch
, at-spi2-atk
, at-spi2-core
, libepoxy
, gtk3
, libdatrie
, libselinux
, libsepol
, libthai
, pcre
, util-linux
, wayland
, xorg
, cmake
, doxygen
, pkg-config
, wayland-protocols
}:
mkDerivation rec {
pname = "maliit-framework";
version = "2.0.0";
src = fetchFromGitHub {
owner = "maliit";
repo = "framework";
rev = version;
sha256 = "138jyvw130kmrldksbk4l38gvvahh3x51zi4vyplad0z5nxmbazb";
};
# in master post 2.2.1, see https://github.com/maliit/framework/issues/106
patches = [
(fetchpatch {
name = "fix-pkg-config.patch";
url = "https://github.com/maliit/framework/commit/1e20a4a5113f1c092295f5a5f04ab6e584f6fcff.patch";
sha256 = "0h7jfqnqvjka626wx2z2g150rch4air7q3zbq59gcb12g7x6gfyn";
})
];
buildInputs = [
at-spi2-atk
at-spi2-core
libepoxy
gtk3
libdatrie
libselinux
libsepol
libthai
pcre
util-linux
wayland
xorg.libXdmcp
xorg.libXtst
];
nativeBuildInputs = [
cmake
doxygen
pkg-config
wayland-protocols
];
preConfigure = ''
cmakeFlags+="-DQT5_PLUGINS_INSTALL_DIR=$out/$qtPluginPrefix"
'';
meta = with lib; {
description = "Core libraries of Maliit and server";
homepage = "http://maliit.github.io/";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ samueldr ];
};
}