nixpkgs/pkgs/development/libraries/graphene/default.nix

80 lines
1.4 KiB
Nix
Raw Normal View History

{ lib, stdenv
2019-05-17 02:24:40 +01:00
, fetchFromGitHub
, nix-update-script
, pkg-config
2019-05-17 02:24:40 +01:00
, meson
, ninja
, python3
, mutest
, 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";
2020-06-26 11:09:04 +01:00
version = "1.10.2";
2019-05-17 02:24:40 +01:00
outputs = [ "out" "devdoc" "installedTests" ];
src = fetchFromGitHub {
owner = "ebassi";
repo = pname;
rev = version;
2020-06-26 11:09:04 +01:00
sha256 = "1ljhhjafi1nlndjswx7mg0d01zci90wz77yvz5w8bd9mm8ssw38s";
2019-05-17 02:24:40 +01:00
};
patches = [
./0001-meson-add-options-for-tests-installation-dirs.patch
];
mesonFlags = [
"-Dgtk_doc=true"
"-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
pkg-config
gobject-introspection
2019-05-17 02:24:40 +01:00
python3
];
buildInputs = [
glib
2019-05-17 02:24:40 +01:00
gobject-introspection
];
checkInputs = [
mutest
2019-05-17 02:24:40 +01:00
];
doCheck = true;
passthru = {
tests = {
2019-11-07 13:11:08 +00:00
installedTests = nixosTests.installed-tests.graphene;
};
updateScript = nix-update-script {
attrPath = pname;
};
};
meta = with lib; {
2019-05-17 02:24:40 +01:00
description = "A thin layer of graphic data types";
homepage = "https://ebassi.github.com/graphene";
license = licenses.mit;
maintainers = with maintainers; [ worldofpeace ];
platforms = platforms.unix;
};
}