2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2020-02-08 03:36:49 +00:00
|
|
|
, fetchFromGitLab
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2020-02-08 03:36:49 +00:00
|
|
|
, gtk-doc
|
|
|
|
, docbook-xsl-nons
|
|
|
|
, docbook_xml_dtd_43
|
|
|
|
, glib
|
|
|
|
, nixosTests
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "glib-testing";
|
2022-03-27 13:04:29 +01:00
|
|
|
version = "0.1.1";
|
2020-02-08 03:36:49 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" "installedTests" ];
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "pwithnall";
|
|
|
|
repo = "libglib-testing";
|
|
|
|
rev = version;
|
2022-03-27 13:04:29 +01:00
|
|
|
sha256 = "U3epLDdLES7MA71z7Q1WXMjzySTFERWBU0u8poObbEo=";
|
2020-02-08 03:36:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# allow installing installed tests to a separate output
|
|
|
|
./installed-tests-path.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2020-02-08 03:36:49 +00:00
|
|
|
gtk-doc
|
|
|
|
docbook-xsl-nons
|
|
|
|
docbook_xml_dtd_43
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dinstalled_tests=true"
|
|
|
|
"-Dinstalled_test_prefix=${placeholder "installedTests"}"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
tests = {
|
|
|
|
installedTests = nixosTests.installed-tests.glib-testing;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-02-08 03:36:49 +00:00
|
|
|
description = "Test library providing test harnesses and mock classes complementing the classes provided by GLib";
|
|
|
|
homepage = "https://gitlab.gnome.org/pwithnall/libglib-testing";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|