diff options
author | Benedikt Broich <b.broich@posteo.de> | 2023-06-25 21:38:16 +0200 |
---|---|---|
committer | Benedikt Broich <b.broich@posteo.de> | 2023-06-25 21:43:35 +0200 |
commit | 74d8cf6138d485edb7e7b71cecb96c58c0b1b222 (patch) | |
tree | 8770fc28d2d862b695f24257893e7f227894e0ef /pkgs/development/compilers/blueprint | |
parent | bbce166d72307eda55c9a62b9d70e1f42d887ec8 (diff) |
blueprint-compiler: 0.6.0 -> 0.8.1
Diffstat (limited to 'pkgs/development/compilers/blueprint')
-rw-r--r-- | pkgs/development/compilers/blueprint/default.nix | 39 |
1 files changed, 33 insertions, 6 deletions
diff --git a/pkgs/development/compilers/blueprint/default.nix b/pkgs/development/compilers/blueprint/default.nix index 0016c8a2c7d9a..d75d4eeeef168 100644 --- a/pkgs/development/compilers/blueprint/default.nix +++ b/pkgs/development/compilers/blueprint/default.nix @@ -1,23 +1,27 @@ -{ fetchFromGitLab +{ dbus +, fetchFromGitLab , gobject-introspection , gtk4 , lib +, libadwaita +, makeFontsConf , meson , ninja , python3 , stdenv , testers +, xvfb-run }: stdenv.mkDerivation (finalAttrs: { pname = "blueprint-compiler"; - version = "0.6.0"; + version = "0.8.1"; src = fetchFromGitLab { domain = "gitlab.gnome.org"; owner = "jwestman"; repo = "blueprint-compiler"; rev = "v${finalAttrs.version}"; - hash = "sha256-L6EGterkZ8EB6xSnJDZ3IMuOumpTpEGnU74X3UgC7k0="; + hash = "sha256-3lj9BMN5aNujbhhZjObdTOCQfH5ERQCgGqIAw5eZIQc="; }; nativeBuildInputs = [ @@ -26,6 +30,7 @@ stdenv.mkDerivation (finalAttrs: { ]; buildInputs = [ + libadwaita (python3.withPackages (ps: with ps; [ pygobject3 ])) @@ -36,12 +41,34 @@ stdenv.mkDerivation (finalAttrs: { gobject-introspection ]; - doCheck = true; - nativeCheckInputs = [ + xvfb-run + dbus gtk4 ]; + env = { + # Fontconfig error: Cannot load default config file: No such file: (null) + FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; }; + }; + + doCheck = true; + + preBuild = '' + # Fontconfig error: No writable cache directories + export XDG_CACHE_HOME="$(mktemp -d)" + ''; + + checkPhase = '' + runHook preCheck + + xvfb-run dbus-run-session \ + --config-file=${dbus}/share/dbus-1/session.conf \ + meson test --no-rebuild --print-errorlogs + + runHook postCheck + ''; + passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; }; @@ -51,6 +78,6 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://gitlab.gnome.org/jwestman/blueprint-compiler"; license = licenses.lgpl3Plus; maintainers = with maintainers; [ benediktbroich ranfdev ]; - platforms = platforms.unix; + platforms = platforms.linux; }; }) |