mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
8522540b7f
- https://github.com/ebassi/graphene/releases/tag/1.10.4 - https://github.com/ebassi/graphene/releases/tag/1.10.6
85 lines
1.5 KiB
Nix
85 lines
1.5 KiB
Nix
{ 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.6";
|
|
|
|
outputs = [ "out" "devdoc" "installedTests" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ebassi";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "v6YH3fRMTzhp7wmU8in9ukcavzHmOAW54EK9ZwQyFxc=";
|
|
};
|
|
|
|
patches = [
|
|
# Add option for changing installation path of installed tests.
|
|
./0001-meson-add-options-for-tests-installation-dirs.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
docbook_xml_dtd_43
|
|
docbook_xsl
|
|
gtk-doc
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
gobject-introspection
|
|
python3
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gobject-introspection
|
|
];
|
|
|
|
checkInputs = [
|
|
mutest
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dgtk_doc=true"
|
|
"-Dinstalled_test_datadir=${placeholder "installedTests"}/share"
|
|
"-Dinstalled_test_bindir=${placeholder "installedTests"}/libexec"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
postPatch = ''
|
|
patchShebangs tests/gen-installed-test.py
|
|
'';
|
|
|
|
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 = teams.gnome.members ++ (with maintainers; [ ]);
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|