nixpkgs/pkgs/by-name/li/libsignon-glib/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

58 lines
1.3 KiB
Nix

{ lib, stdenv, fetchgit, nix-update-script, pkg-config, meson, ninja, vala, python3, gtk-doc, docbook_xsl, docbook_xml_dtd_43, docbook_xml_dtd_412, glib, check, gobject-introspection }:
stdenv.mkDerivation rec {
pname = "libsignon-glib";
version = "2.1";
outputs = [ "out" "dev" "devdoc" "py" ];
src = fetchgit {
url = "https://gitlab.com/accounts-sso/${pname}";
rev = "refs/tags/${version}";
sha256 = "0gnx9gqsh0hcfm1lk7w60g64mkn1iicga5f5xcy1j9a9byacsfd0";
fetchSubmodules = true;
};
nativeBuildInputs = [
check
docbook_xml_dtd_412
docbook_xml_dtd_43
docbook_xsl
gobject-introspection
gtk-doc
meson
ninja
pkg-config
python3
vala
];
buildInputs = [
glib
python3.pkgs.pygobject3
];
mesonFlags = [
"-Dintrospection=true"
"-Dpy-overrides-dir=${placeholder "py"}/${python3.sitePackages}/gi/overrides"
];
postPatch = ''
chmod +x build-aux/gen-error-map.py
patchShebangs build-aux/gen-error-map.py
'';
passthru = {
updateScript = nix-update-script { };
};
meta = with lib; {
description = "Library for managing single signon credentials which can be used from GLib applications";
homepage = "https://gitlab.com/accounts-sso/libsignon-glib";
license = licenses.lgpl21;
maintainers = [ ];
platforms = platforms.linux;
};
}