nixpkgs/pkgs/by-name/li/libgdata/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

87 lines
1.6 KiB
Nix

{ lib, stdenv
, fetchurl
, pkg-config
, meson
, ninja
, nixosTests
, vala
, gettext
, libxml2
, glib
, json-glib
, gcr
, gnome-online-accounts
, gobject-introspection
, gnome
, p11-kit
, openssl
, uhttpmock
, libsoup
}:
stdenv.mkDerivation rec {
pname = "libgdata";
version = "0.18.1";
outputs = [ "out" "dev" "installedTests" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "3YWS7rZRKtCoz1yL6McudvdL/msj5N2T8HVu4HFoBMc=";
};
patches = [
./installed-tests-path.patch
];
nativeBuildInputs = [
gettext
gobject-introspection
meson
ninja
pkg-config
vala
];
buildInputs = [
gcr
openssl
p11-kit
uhttpmock
];
propagatedBuildInputs = [
glib
libsoup
libxml2
gnome-online-accounts
json-glib
];
mesonFlags = [
"-Dgtk_doc=false"
"-Dinstalled_test_bindir=${placeholder "installedTests"}/libexec"
"-Dinstalled_test_datadir=${placeholder "installedTests"}/share"
"-Dinstalled_tests=true"
];
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
versionPolicy = "none"; # Stable version has not been updated for a long time.
};
tests = {
installedTests = nixosTests.installed-tests.libgdata;
};
};
meta = with lib; {
description = "GData API library";
homepage = "https://gitlab.gnome.org/GNOME/libgdata";
maintainers = with maintainers; [ raskin ] ++ teams.gnome.members;
platforms = platforms.linux;
license = licenses.lgpl21Plus;
};
}