mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +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.
102 lines
1.8 KiB
Nix
102 lines
1.8 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, gi-docgen
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, vala
|
|
, gobject-introspection
|
|
, gperf
|
|
, glib
|
|
, cairo
|
|
, sqlite
|
|
, libsoup_3
|
|
, gtk4
|
|
, libsysprof-capture
|
|
, json-glib
|
|
, protobufc
|
|
, xvfb-run
|
|
, gnome
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libshumate";
|
|
version = "1.3.0";
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
outputBin = "devdoc"; # demo app
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/libshumate/${lib.versions.majorMinor finalAttrs.version}/libshumate-${finalAttrs.version}.tar.xz";
|
|
hash = "sha256-giem6Cgc3hIjKJT++Ddg1E+maznvAzxh7ZNKhsbcddQ=";
|
|
};
|
|
|
|
depsBuildBuild = [
|
|
# required to find native gi-docgen when cross compiling
|
|
pkg-config
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
gi-docgen
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
vala
|
|
gobject-introspection
|
|
gperf
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
cairo
|
|
sqlite
|
|
libsoup_3
|
|
gtk4
|
|
libsysprof-capture
|
|
json-glib
|
|
protobufc
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
xvfb-run
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Ddemos=true"
|
|
];
|
|
|
|
doCheck = !stdenv.hostPlatform.isDarwin;
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
env \
|
|
HOME="$TMPDIR" \
|
|
GTK_A11Y=none \
|
|
xvfb-run meson test --print-errorlogs
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
postFixup = ''
|
|
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
|
moveToOutput share/doc/libshumate-1.0 "$devdoc"
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = "libshumate";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "GTK toolkit providing widgets for embedded maps";
|
|
mainProgram = "shumate-demo";
|
|
homepage = "https://gitlab.gnome.org/GNOME/libshumate";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = teams.gnome.members;
|
|
platforms = platforms.unix;
|
|
};
|
|
})
|