mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
librsvg: 2.55.1 → 2.56.2
https://gitlab.gnome.org/GNOME/librsvg/-/compare/2.55.1...2.56.2
This commit is contained in:
parent
c543d28001
commit
32fcf619c8
@ -30,30 +30,32 @@
|
|||||||
, nix
|
, nix
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "librsvg";
|
pname = "librsvg";
|
||||||
version = "2.55.1";
|
version = "2.56.2";
|
||||||
|
|
||||||
outputs = [ "out" "dev" ] ++ lib.optionals withIntrospection [
|
outputs = [ "out" "dev" ] ++ lib.optionals withIntrospection [
|
||||||
"devdoc"
|
"devdoc"
|
||||||
];
|
];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/librsvg/${lib.versions.majorMinor finalAttrs.version}/librsvg-${finalAttrs.version}.tar.xz";
|
||||||
sha256 = "a69IqdOlb9E7v7ufH3Z1myQLcKH6Ig/SOEdNZqkm+Yw=";
|
sha256 = "PsPE2Pc+C6S5EwAmlp6DccCStzQpjTbi/bPrSvzsEgA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoDeps = rustPlatform.fetchCargoTarball {
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||||
inherit src;
|
inherit (finalAttrs) src;
|
||||||
name = "${pname}-${version}";
|
name = "librsvg-deps-${finalAttrs.version}";
|
||||||
hash = "sha256-nRmOB9Jo+mmB0+wXrQvoII4e0ucV7bNCDeuk6CbcPdk=";
|
hash = "sha256-GIEpZ5YMvmYQLcaLXseXQ6gIF7ICtUKq28JCVJ3PEYk=";
|
||||||
# TODO: move this to fetchCargoTarball
|
# TODO: move this to fetchCargoTarball
|
||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
||||||
depsBuildBuild = [ pkg-config ];
|
depsBuildBuild = [
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
gdk-pixbuf
|
gdk-pixbuf
|
||||||
@ -137,6 +139,13 @@ stdenv.mkDerivation rec {
|
|||||||
# Merge gdkpixbuf and librsvg loaders
|
# Merge gdkpixbuf and librsvg loaders
|
||||||
cat ${lib.getLib gdk-pixbuf}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache $GDK_PIXBUF/loaders.cache > $GDK_PIXBUF/loaders.cache.tmp
|
cat ${lib.getLib gdk-pixbuf}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache $GDK_PIXBUF/loaders.cache > $GDK_PIXBUF/loaders.cache.tmp
|
||||||
mv $GDK_PIXBUF/loaders.cache.tmp $GDK_PIXBUF/loaders.cache
|
mv $GDK_PIXBUF/loaders.cache.tmp $GDK_PIXBUF/loaders.cache
|
||||||
|
|
||||||
|
mkdir -p "$out/share/bash-completion/completions/"
|
||||||
|
$out/bin/rsvg-convert --completion bash > "$out/share/bash-completion/completions/rsvg-convert"
|
||||||
|
mkdir -p "$out/share/zsh/site-functions/"
|
||||||
|
$out/bin/rsvg-convert --completion zsh > "$out/share/zsh/site-functions/_rsvg-convert"
|
||||||
|
mkdir -p "$out/share/fish/vendor_completions.d/"
|
||||||
|
$out/bin/rsvg-convert --completion fish > "$out/share/fish/vendor_completions.d/rsvg-convert.fish"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = lib.optionalString withIntrospection ''
|
postFixup = lib.optionalString withIntrospection ''
|
||||||
@ -189,4 +198,4 @@ stdenv.mkDerivation rec {
|
|||||||
mainProgram = "rsvg-convert";
|
mainProgram = "rsvg-convert";
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user