diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/graphene/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/graphene/default.nix | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/graphene/default.nix b/nixpkgs/pkgs/development/libraries/graphene/default.nix new file mode 100644 index 000000000000..57cad4497653 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/graphene/default.nix @@ -0,0 +1,79 @@ +{ lib, stdenv +, fetchFromGitHub +, nix-update-script +, pkg-config +, meson +, ninja +, python3 +, mutest +, nixosTests +, glib +, gtk-doc +, docbook_xsl +, docbook_xml_dtd_43 +, gobject-introspection +}: + +stdenv.mkDerivation rec { + pname = "graphene"; + version = "1.10.2"; + + outputs = [ "out" "devdoc" "installedTests" ]; + + src = fetchFromGitHub { + owner = "ebassi"; + repo = pname; + rev = version; + sha256 = "1ljhhjafi1nlndjswx7mg0d01zci90wz77yvz5w8bd9mm8ssw38s"; + }; + + 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" + ]; + + nativeBuildInputs = [ + docbook_xml_dtd_43 + docbook_xsl + gtk-doc + meson + ninja + pkg-config + gobject-introspection + python3 + ]; + + buildInputs = [ + glib + gobject-introspection + ]; + + checkInputs = [ + mutest + ]; + + doCheck = true; + + passthru = { + tests = { + installedTests = nixosTests.installed-tests.graphene; + }; + + updateScript = nix-update-script { + attrPath = pname; + }; + }; + + meta = with 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; + }; +} |