2022-12-28 21:20:54 +00:00
|
|
|
{ gtk4
|
|
|
|
, python3
|
2022-05-20 14:39:30 +00:00
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, gobject-introspection
|
|
|
|
, lib
|
|
|
|
, meson
|
|
|
|
, ninja
|
2022-12-28 21:20:54 +00:00
|
|
|
, testers
|
2022-05-20 14:39:30 +00:00
|
|
|
}:
|
|
|
|
|
2022-12-28 21:20:54 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-05-20 14:39:30 +00:00
|
|
|
pname = "blueprint-compiler";
|
2022-12-28 21:20:54 +00:00
|
|
|
version = "0.6.0";
|
2022-05-20 14:39:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "jwestman";
|
2022-12-28 21:20:54 +00:00
|
|
|
repo = "blueprint-compiler";
|
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-L6EGterkZ8EB6xSnJDZ3IMuOumpTpEGnU74X3UgC7k0=";
|
2022-05-20 14:39:30 +00:00
|
|
|
};
|
|
|
|
|
2022-12-28 21:20:54 +00:00
|
|
|
doCheck = true;
|
2022-05-20 14:39:30 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
python3
|
2022-12-28 21:20:54 +00:00
|
|
|
gtk4
|
|
|
|
] ++ (with python3.pkgs; [
|
|
|
|
pygobject3
|
|
|
|
wrapPython
|
|
|
|
]);
|
2022-05-20 14:39:30 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
2022-12-28 21:20:54 +00:00
|
|
|
postFixup = ''
|
|
|
|
makeWrapperArgs="\
|
|
|
|
--prefix GI_TYPELIB_PATH : $GI_TYPELIB_PATH \
|
|
|
|
--prefix PYTHONPATH : \"$(toPythonPath $out):$(toPythonPath ${python3.pkgs.pygobject3})\""
|
|
|
|
wrapPythonPrograms
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = finalAttrs.finalPackage;
|
|
|
|
};
|
|
|
|
|
2022-05-20 14:39:30 +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;
|
2022-12-28 21:20:54 +00:00
|
|
|
maintainers = with maintainers; [ benediktbroich ranfdev ];
|
|
|
|
platforms = platforms.unix;
|
2022-05-20 14:39:30 +00:00
|
|
|
};
|
2022-12-28 21:20:54 +00:00
|
|
|
})
|