2019-05-17 02:24:40 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkgconfig
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
2019-08-21 22:12:07 +01:00
|
|
|
, mutest
|
2019-08-26 14:04:55 +01:00
|
|
|
, nixosTests
|
2019-05-17 02:24:40 +01:00
|
|
|
, glib
|
|
|
|
, gtk-doc
|
|
|
|
, docbook_xsl
|
|
|
|
, docbook_xml_dtd_43
|
|
|
|
, gobject-introspection
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "graphene";
|
2019-09-09 12:26:09 +01:00
|
|
|
version = "1.10.0";
|
2019-05-17 02:24:40 +01:00
|
|
|
|
|
|
|
outputs = [ "out" "devdoc" "installedTests" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ebassi";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-09-09 12:26:09 +01:00
|
|
|
sha256 = "16vqwih5bfxv7r3mm7iiha804rpsxzxjfrs4kx76d9q5yg2hayxr";
|
2019-05-17 02:24:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./0001-meson-add-options-for-tests-installation-dirs.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dgtk_doc=true"
|
2019-09-03 17:38:57 +01:00
|
|
|
"-Dinstalled_test_datadir=${placeholder "installedTests"}/share"
|
|
|
|
"-Dinstalled_test_bindir=${placeholder "installedTests"}/libexec"
|
2019-05-17 02:24:40 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
docbook_xml_dtd_43
|
|
|
|
docbook_xsl
|
|
|
|
gtk-doc
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
2019-08-21 22:12:07 +01:00
|
|
|
gobject-introspection
|
2019-05-17 02:24:40 +01:00
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2019-08-21 22:12:07 +01:00
|
|
|
glib
|
2019-05-17 02:24:40 +01:00
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2019-08-21 22:12:07 +01:00
|
|
|
mutest
|
2019-05-17 02:24:40 +01:00
|
|
|
];
|
|
|
|
|
2019-08-21 22:12:07 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2019-08-26 14:04:55 +01:00
|
|
|
passthru = {
|
|
|
|
tests = {
|
2019-11-07 13:11:08 +00:00
|
|
|
installedTests = nixosTests.installed-tests.graphene;
|
2019-08-26 14:04:55 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-05-17 02:24:40 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A thin layer of graphic data types";
|
|
|
|
homepage = "https://ebassi.github.com/graphene";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ worldofpeace ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|