2023-07-15 17:15:38 +00:00
|
|
|
{ dbus
|
|
|
|
, fetchFromGitLab
|
2022-06-16 17:23:12 +00:00
|
|
|
, gobject-introspection
|
|
|
|
, lib
|
2023-07-15 17:15:38 +00:00
|
|
|
, libadwaita
|
2022-06-16 17:23:12 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2023-01-11 07:51:40 +00:00
|
|
|
, python3
|
|
|
|
, stdenv
|
|
|
|
, testers
|
2023-07-15 17:15:38 +00:00
|
|
|
, xvfb-run
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
2023-01-11 07:51:40 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-06-16 17:23:12 +00:00
|
|
|
pname = "blueprint-compiler";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "0.10.0";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "jwestman";
|
2023-01-11 07:51:40 +00:00
|
|
|
repo = "blueprint-compiler";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-pPrQc2ID84N+50j/A6VAJAOK+D1hjaokhFckOnOaeTw=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2023-07-15 17:15:38 +00:00
|
|
|
libadwaita
|
2023-01-11 07:51:40 +00:00
|
|
|
(python3.withPackages (ps: with ps; [
|
|
|
|
pygobject3
|
|
|
|
]))
|
2022-06-16 17:23:12 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2023-01-11 07:51:40 +00:00
|
|
|
# For setup hook, so that the compiler can find typelib files
|
2022-06-16 17:23:12 +00:00
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-07-15 17:15:38 +00:00
|
|
|
dbus
|
2023-08-04 22:07:22 +00:00
|
|
|
xvfb-run
|
2023-01-11 07:51:40 +00:00
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
# requires xvfb-run
|
|
|
|
doCheck = !stdenv.isDarwin;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
|
|
|
|
xvfb-run dbus-run-session \
|
|
|
|
--config-file=${dbus}/share/dbus-1/session.conf \
|
|
|
|
meson test --no-rebuild --print-errorlogs
|
|
|
|
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = finalAttrs.finalPackage;
|
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A markup language for GTK user interface files";
|
|
|
|
homepage = "https://gitlab.gnome.org/jwestman/blueprint-compiler";
|
|
|
|
license = licenses.lgpl3Plus;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ benediktbroich paveloom ranfdev ];
|
2023-10-09 19:29:22 +00:00
|
|
|
platforms = platforms.unix;
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
2023-01-11 07:51:40 +00:00
|
|
|
})
|