depot/third_party/nixpkgs/pkgs/development/libraries/libaccounts-glib/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

57 lines
1.4 KiB
Nix

{ lib, stdenv, fetchFromGitLab, meson, mesonEmulatorHook, ninja, glib, check, python3, vala, gtk-doc, glibcLocales
, libxml2, libxslt, pkg-config, sqlite, docbook_xsl, docbook_xml_dtd_43, gobject-introspection }:
stdenv.mkDerivation rec {
pname = "libaccounts-glib";
version = "1.26";
outputs = [ "out" "dev" "devdoc" "py" ];
src = fetchFromGitLab {
owner = "accounts-sso";
repo = "libaccounts-glib";
rev = version;
sha256 = "sha256-KVKylt+XjLfidsS2KzT7oFXP6rTR528lYAUP8dffu7k=";
};
nativeBuildInputs = [
check
docbook_xml_dtd_43
docbook_xsl
glibcLocales
gobject-introspection
gtk-doc
meson
ninja
pkg-config
vala
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];
buildInputs = [
glib
libxml2
libxslt
python3.pkgs.pygobject3
sqlite
];
# TODO: send patch upstream to make running tests optional
postPatch = lib.optionalString (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
substituteInPlace meson.build \
--replace "subdir('tests')" ""
'';
LC_ALL = "en_US.UTF-8";
mesonFlags = [
"-Dpy-overrides-dir=${placeholder "py"}/${python3.sitePackages}/gi/overrides"
];
meta = with lib; {
description = "Library for managing accounts which can be used from GLib applications";
platforms = platforms.linux;
license = licenses.lgpl21;
};
}