nixpkgs/pkgs/development/compilers/blueprint/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

72 lines
1.4 KiB
Nix
Raw Normal View History

2023-06-25 19:38:16 +00:00
{ dbus
, fetchFromGitLab
, gobject-introspection
, lib
2023-06-25 19:38:16 +00:00
, libadwaita
, meson
, ninja
, python3
, stdenv
2022-12-28 21:20:54 +00:00
, testers
2023-06-25 19:38:16 +00:00
, xvfb-run
}:
2022-12-28 21:20:54 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "blueprint-compiler";
2023-07-22 10:54:23 +00:00
version = "0.10.0";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "jwestman";
2022-12-28 21:20:54 +00:00
repo = "blueprint-compiler";
rev = "v${finalAttrs.version}";
2023-07-22 10:54:23 +00:00
hash = "sha256-pPrQc2ID84N+50j/A6VAJAOK+D1hjaokhFckOnOaeTw=";
};
nativeBuildInputs = [
meson
ninja
];
buildInputs = [
2023-06-25 19:38:16 +00:00
libadwaita
(python3.withPackages (ps: with ps; [
pygobject3
]))
];
propagatedBuildInputs = [
# For setup hook, so that the compiler can find typelib files
gobject-introspection
];
nativeCheckInputs = [
2023-06-25 19:38:16 +00:00
dbus
2023-07-22 10:54:23 +00:00
xvfb-run
];
2022-12-28 21:20:54 +00:00
2023-09-08 15:24:32 +00:00
# requires xvfb-run
doCheck = !stdenv.isDarwin;
2023-06-25 19:38:16 +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
'';
2022-12-28 21:20:54 +00:00
passthru.tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
};
meta = with lib; {
description = "A markup language for GTK user interface files";
homepage = "https://gitlab.gnome.org/jwestman/blueprint-compiler";
license = licenses.lgpl3Plus;
2023-07-22 10:54:23 +00:00
maintainers = with maintainers; [ benediktbroich paveloom ranfdev ];
2023-09-08 15:24:32 +00:00
platforms = platforms.unix;
};
2022-12-28 21:20:54 +00:00
})