pkgs/development/libraries: stdenv.lib -> lib
This commit is contained in:
committed by
Jonathan Ringer
parent
046d24424e
commit
66e44425c6
@@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
|
||||
outputs = [ "out" "dev" "man" "devdoc" "installedTests" ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "05ggmzwvrxq9w4zcvmrnnd6qplsmb4n95lj4q607c7arzlf6mil3";
|
||||
};
|
||||
|
||||
@@ -53,7 +53,7 @@ stdenv.mkDerivation rec {
|
||||
gobject-introspection
|
||||
makeWrapper
|
||||
glib
|
||||
] ++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
||||
] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
glib
|
||||
@@ -78,7 +78,7 @@ stdenv.mkDerivation rec {
|
||||
postInstall =
|
||||
# meson erroneously installs loaders with .dylib extension on Darwin.
|
||||
# Their @rpath has to be replaced before gdk-pixbuf-query-loaders looks at them.
|
||||
stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
lib.optionalString stdenv.isDarwin ''
|
||||
for f in $out/${passthru.moduleDir}/*.dylib; do
|
||||
install_name_tool -change @rpath/libgdk_pixbuf-2.0.0.dylib $out/lib/libgdk_pixbuf-2.0.0.dylib $f
|
||||
mv $f ''${f%.dylib}.so
|
||||
@@ -88,13 +88,13 @@ stdenv.mkDerivation rec {
|
||||
+ ''
|
||||
moveToOutput "bin" "$dev"
|
||||
moveToOutput "bin/gdk-pixbuf-thumbnailer" "$out"
|
||||
'' + stdenv.lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
|
||||
'' + lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
|
||||
# We need to install 'loaders.cache' in lib/gdk-pixbuf-2.0/2.10.0/
|
||||
$dev/bin/gdk-pixbuf-query-loaders --update-cache
|
||||
'';
|
||||
|
||||
# The fixDarwinDylibNames hook doesn't patch binaries.
|
||||
preFixup = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
preFixup = lib.optionalString stdenv.isDarwin ''
|
||||
for f in $out/bin/* $dev/bin/*; do
|
||||
install_name_tool -change @rpath/libgdk_pixbuf-2.0.0.dylib $out/lib/libgdk_pixbuf-2.0.0.dylib $f
|
||||
done
|
||||
@@ -124,7 +124,7 @@ stdenv.mkDerivation rec {
|
||||
moduleDir = "lib/gdk-pixbuf-2.0/2.10.0/loaders";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "A library for image loading and manipulation";
|
||||
homepage = "https://gitlab.gnome.org/GNOME/gdk-pixbuf";
|
||||
maintainers = [ maintainers.eelco ] ++ teams.gnome.members;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv
|
||||
{ lib, stdenv
|
||||
, fetchFromGitLab
|
||||
, meson
|
||||
, ninja
|
||||
@@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
|
||||
"-Dgtk_doc=true"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Deprecated API for integrating GdkPixbuf with Xlib data types";
|
||||
homepage = "https://gitlab.gnome.org/Archive/gdk-pixbuf-xlib";
|
||||
maintainers = teams.gnome.members;
|
||||
|
||||
Reference in New Issue
Block a user