2023-01-11 07:51:40 +00:00
|
|
|
{ fetchFromGitLab
|
2022-06-16 17:23:12 +00:00
|
|
|
, gobject-introspection
|
2023-01-11 07:51:40 +00:00
|
|
|
, gtk4
|
2022-06-16 17:23:12 +00:00
|
|
|
, lib
|
|
|
|
, meson
|
|
|
|
, ninja
|
2023-01-11 07:51:40 +00:00
|
|
|
, python3
|
|
|
|
, stdenv
|
|
|
|
, testers
|
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-01-11 07:51:40 +00:00
|
|
|
version = "0.6.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}";
|
|
|
|
hash = "sha256-L6EGterkZ8EB6xSnJDZ3IMuOumpTpEGnU74X3UgC7k0=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
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-01-11 07:51:40 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
gtk4
|
|
|
|
];
|
|
|
|
|
|
|
|
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-01-11 07:51:40 +00:00
|
|
|
maintainers = with maintainers; [ benediktbroich ranfdev ];
|
|
|
|
platforms = platforms.unix;
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
2023-01-11 07:51:40 +00:00
|
|
|
})
|