fcc03dbfc5
GitOrigin-RevId: ff96a0fa5635770390b184ae74debea75c3fd534
76 lines
1.5 KiB
Nix
76 lines
1.5 KiB
Nix
{ lib, stdenv
|
|
, substituteAll
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, meson
|
|
, ninja
|
|
, gobject-introspection
|
|
, python3
|
|
, libyaml
|
|
, rpm
|
|
, file
|
|
, gtk-doc
|
|
, docbook-xsl-nons
|
|
, help2man
|
|
, docbook_xml_dtd_412
|
|
, glib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libmodulemd";
|
|
version = "2.12.0";
|
|
|
|
outputs = [ "bin" "out" "dev" "devdoc" "man" "py" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fedora-modularity";
|
|
repo = pname;
|
|
rev = "${pname}-${version}";
|
|
sha256 = "1mq9as98q4wyka404f8xwfc44cn5j4bsk0fch5pf07v81sagc1q9";
|
|
};
|
|
|
|
patches = [
|
|
# Use proper glib devdoc path.
|
|
(substituteAll {
|
|
src = ./glib-devdoc.patch;
|
|
glib_devdoc = glib.devdoc;
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
meson
|
|
ninja
|
|
gtk-doc
|
|
docbook-xsl-nons
|
|
help2man
|
|
docbook_xml_dtd_412
|
|
gobject-introspection
|
|
];
|
|
|
|
buildInputs = [
|
|
libyaml
|
|
rpm
|
|
file # for libmagic
|
|
glib
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Ddeveloper_build=false"
|
|
"-Dgobject_overrides_dir_py3=${placeholder "py"}/${python3.sitePackages}/gi/overrides"
|
|
];
|
|
|
|
postFixup = ''
|
|
# Python overrides depend our own typelibs and other packages
|
|
mkdir -p "$py/nix-support"
|
|
echo "$out ${python3.pkgs.pygobject3} ${python3.pkgs.six}" > "$py/nix-support/propagated-build-inputs"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "C Library for manipulating module metadata files";
|
|
homepage = "https://github.com/fedora-modularity/libmodulemd";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
platforms = platforms.linux ++ platforms.darwin ;
|
|
};
|
|
}
|