mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 14:03:29 +00:00
571c71e6f7
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.
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchurl
|
|
, gi-docgen
|
|
, gobject-introspection
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, vala
|
|
, glib
|
|
, liburing
|
|
, gnome
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libdex";
|
|
version = "0.8.1";
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/libdex/${lib.versions.majorMinor finalAttrs.version}/libdex-${finalAttrs.version}.tar.xz";
|
|
hash = "sha256-lVR1rT5Dqr1vb3BDUmS17ne9JlvZVUUhH+4CawjTeKA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gi-docgen
|
|
gobject-introspection
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
vala
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
liburing
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Ddocs=true"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
postFixup = ''
|
|
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
|
moveToOutput "share/doc" "$devdoc"
|
|
'';
|
|
|
|
passthru.updateScript = gnome.updateScript {
|
|
packageName = "libdex";
|
|
versionPolicy = "odd-unstable";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Library supporting deferred execution for GNOME and GTK";
|
|
homepage = "https://gitlab.gnome.org/GNOME/libdex";
|
|
maintainers = teams.gnome.members;
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
license = licenses.lgpl21Plus;
|
|
};
|
|
})
|