1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
{
description = "GXml provides a GObject API for manipulating XML and a Serializable framework from GObject to XML.";
outputs = { self, nixpkgs }:
let
supportedSystems = [
"aarch64-linux"
"i686-linux"
"riscv64-linux"
"x86_64-linux"
"x86_64-darwin"
];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
packagesFor = forAllSystems (system:
let
pkgs = nixpkgsFor.${system};
in with pkgs; rec {
nativeBuildInputs = [ meson pkg-config ninja vala gobject-introspection ];
buildInputs = [ libxml2 glib libgee ];
propagatedBuildInputs = buildInputs;
});
in
{
packages = forAllSystems (system:
let
pkgs = nixpkgsFor.${system};
packages = packagesFor.${system};
in {
default = pkgs.stdenv.mkDerivation rec {
name = "gxml";
src = self;
outputs = [ "out" "dev" "devdoc" ];
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_GIRDIR = "${placeholder "dev"}/share/gir-1.0";
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_TYPELIBDIR = "${placeholder "out"}/lib/girepository-1.0";
doCheck = true;
enableParallelBuilding = true;
inherit (packages) nativeBuildInputs buildInputs propagatedBuildInputs;
meta = with pkgs.lib; {
description = "GXml provides a GObject API for manipulating XML and a Serializable framework from GObject to XML.";
homepage = "https://gitlab.gnome.org/GNOME/gxml";
license = licenses.lgpl21Plus;
platforms = platforms.unix;
maintainers = teams.gnome.members;
};
};
});
devShells = forAllSystems (system:
let
pkgs = nixpkgsFor.${system};
packages = packagesFor.${system};
in {
default = pkgs.mkShell {
packages = packages.nativeBuildInputs ++ packages.buildInputs;
};
});
};
}
|