atk: 2.36.0 → 2.38.0

https://gitlab.gnome.org/GNOME/atk/-/compare/ATK_2_36_0...2.38.0

Also clean up the expression to match the rest of the GNOME package set.
main
Jan Tojnar 2 years ago
parent 4c4d0d6bc3
commit f9eaa902c0
  1. 51
      pkgs/development/libraries/atk/default.nix

@ -1,36 +1,49 @@
{ lib, stdenv, fetchurl, meson, ninja, gettext, pkg-config, glib { stdenv
, fixDarwinDylibNames, gobject-introspection, gnome , lib
, fetchurl
, meson
, ninja
, gettext
, pkg-config
, glib
, fixDarwinDylibNames
, gobject-introspection
, gnome
}: }:
let stdenv.mkDerivation rec {
pname = "atk"; pname = "atk";
version = "2.36.0"; version = "2.38.0";
in
stdenv.mkDerivation rec { outputs = [ "out" "dev" ];
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.xz"; url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "1217cmmykjgkkim0zr1lv5j13733m4w5vipmy4ivw0ll6rz28xpv"; sha256 = "rE3ipO9L1WZQUpUv4WllfmXolcUFff+zwqgQ9hkaDDY=";
}; };
outputs = [ "out" "dev" ]; patches = [
# meson builds an incorrect .pc file
# glib should be Requires not Requires.private
./fix_pc.patch
];
nativeBuildInputs = [ meson ninja pkg-config gettext gobject-introspection glib ] nativeBuildInputs = [
++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames; meson
ninja
pkg-config
gettext
gobject-introspection
glib
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
fixDarwinDylibNames
];
propagatedBuildInputs = [ propagatedBuildInputs = [
# Required by atk.pc # Required by atk.pc
glib glib
]; ];
patches = [
# meson builds an incorrect .pc file
# glib should be Requires not Requires.private
./fix_pc.patch
];
mesonFlags = [ mesonFlags = [
"-Dintrospection=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}" "-Dintrospection=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
]; ];
@ -55,7 +68,7 @@ stdenv.mkDerivation rec {
control running applications. control running applications.
''; '';
homepage = "http://library.gnome.org/devel/atk/"; homepage = "https://gitlab.gnome.org/GNOME/atk";
license = lib.licenses.lgpl2Plus; license = lib.licenses.lgpl2Plus;

Loading…
Cancel
Save