nixpkgs/pkgs/development/libraries/libmodulemd/default.nix

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

74 lines
1.5 KiB
Nix
Raw Normal View History

{ lib, stdenv
2020-04-05 01:54:09 +00:00
, substituteAll
, fetchFromGitHub
2020-04-05 01:54:09 +00:00
, pkg-config
, meson
, ninja
, gobject-introspection
, python3
, libyaml
2020-04-05 01:54:09 +00:00
, rpm
, file
, gtk-doc
2020-04-05 01:54:09 +00:00
, docbook-xsl-nons
, docbook_xml_dtd_412
, glib
}:
stdenv.mkDerivation rec {
pname = "libmodulemd";
version = "2.14.0";
2020-04-05 01:54:09 +00:00
outputs = [ "bin" "out" "dev" "devdoc" "man" "py" ];
src = fetchFromGitHub {
owner = "fedora-modularity";
repo = pname;
rev = "${pname}-${version}";
sha256 = "sha256-ccLk8O0UJwy7WZYr5Bq2XqaSFNe4i7HQehmVoB5C2Yg=";
};
patches = [
2020-04-05 01:54:09 +00:00
# Use proper glib devdoc path.
(substituteAll {
src = ./glib-devdoc.patch;
glib_devdoc = glib.devdoc;
})
];
nativeBuildInputs = [
2020-04-05 01:54:09 +00:00
pkg-config
meson
ninja
gtk-doc
2020-04-05 01:54:09 +00:00
docbook-xsl-nons
docbook_xml_dtd_412
gobject-introspection
];
buildInputs = [
libyaml
2020-04-05 01:54:09 +00:00
rpm
file # for libmagic
glib
];
mesonFlags = [
"-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; [ ];
2020-12-17 15:31:51 +00:00
platforms = platforms.linux ++ platforms.darwin ;
};
}