forked from mirrors/nixpkgs
libxml2: switch to gnome mirrors
New versions will only be published there. Also add GNOME update script.
This commit is contained in:
parent
8ca7bb10a8
commit
ce668865b9
|
@ -15,6 +15,7 @@
|
||||||
, icu ? null
|
, icu ? null
|
||||||
, enableShared ? stdenv.hostPlatform.libc != "msvcrt" && !stdenv.hostPlatform.isStatic
|
, enableShared ? stdenv.hostPlatform.libc != "msvcrt" && !stdenv.hostPlatform.isStatic
|
||||||
, enableStatic ? !enableShared
|
, enableStatic ? !enableShared
|
||||||
|
, gnome
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -26,8 +27,8 @@ stdenv.mkDerivation rec {
|
||||||
++ lib.optional (enableStatic && enableShared) "static";
|
++ lib.optional (enableStatic && enableShared) "static";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://xmlsoft.org/sources/${pname}-${version}.tar.gz";
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "14hxwzmf5xqppx77z7i0ni9lpzg1a84dqpf8j8l1fvy570g6imn8";
|
sha256 = "KKkvarHzEaz15HhWTEkIjvCsdwkNnHGbvF1Rjx/mLrk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -121,6 +122,11 @@ stdenv.mkDerivation rec {
|
||||||
passthru = {
|
passthru = {
|
||||||
inherit version;
|
inherit version;
|
||||||
pythonSupport = pythonSupport;
|
pythonSupport = pythonSupport;
|
||||||
|
|
||||||
|
updateScript = gnome.updateScript {
|
||||||
|
packageName = pname;
|
||||||
|
versionPolicy = "none";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue