summary refs log tree commit diff
path: root/pkgs/development/libraries/expat
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2021-06-12 21:17:51 +0200
committerGitHub <noreply@github.com>2021-06-12 21:17:51 +0200
commit9e74629a337a342a8349973793b466d90664dc78 (patch)
treeb2db62f81ade68f7f719a47e3265eaeabf0363b7 /pkgs/development/libraries/expat
parent9309a23dd39a700d22f4acdb108b884555e010a2 (diff)
downloadnixpkgs-9e74629a337a342a8349973793b466d90664dc78.tar
nixpkgs-9e74629a337a342a8349973793b466d90664dc78.tar.gz
nixpkgs-9e74629a337a342a8349973793b466d90664dc78.tar.bz2
nixpkgs-9e74629a337a342a8349973793b466d90664dc78.tar.lz
nixpkgs-9e74629a337a342a8349973793b466d90664dc78.tar.xz
nixpkgs-9e74629a337a342a8349973793b466d90664dc78.tar.zst
nixpkgs-9e74629a337a342a8349973793b466d90664dc78.zip
expat: 2.2.10 -> 2.4.1 (CVE-2013-0340) (#124212)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/development/libraries/expat')
-rw-r--r--pkgs/development/libraries/expat/default.nix16
1 files changed, 7 insertions, 9 deletions
diff --git a/pkgs/development/libraries/expat/default.nix b/pkgs/development/libraries/expat/default.nix
index ba9fb2b177d..fe30b701ed0 100644
--- a/pkgs/development/libraries/expat/default.nix
+++ b/pkgs/development/libraries/expat/default.nix
@@ -5,14 +5,13 @@
 # cgit) that are needed here should be included directly in Nixpkgs as
 # files.
 
-let
-  version = "2.2.10";
-in stdenv.mkDerivation rec {
-  name = "expat-${version}";
+stdenv.mkDerivation rec {
+  pname = "expat";
+  version = "2.4.1";
 
   src = fetchurl {
-    url = "https://github.com/libexpat/libexpat/releases/download/R_${lib.replaceStrings ["."] ["_"] version}/${name}.tar.xz";
-    sha256 = "sha256-Xf5Tj4tbY/A+mO2sUg19mmpNIuSC5cltTQb8xUhcJfI=";
+    url = "https://github.com/libexpat/libexpat/releases/download/R_${lib.replaceStrings ["."] ["_"] version}/${pname}-${version}.tar.xz";
+    sha256 = "sha256-zwMtDbqbkoY2VI4ysyei1msaq2PE9KE90TLC0dLy+2o=";
   };
 
   outputs = [ "out" "dev" ]; # TODO: fix referrers
@@ -25,12 +24,11 @@ in stdenv.mkDerivation rec {
   doCheck = true; # not cross;
 
   preCheck = ''
-    patchShebangs ./run.sh
-    patchShebangs ./test-driver-wrapper.sh
+    patchShebangs ./configure ./run.sh ./test-driver-wrapper.sh
   '';
 
   meta = with lib; {
-    homepage = "http://www.libexpat.org/";
+    homepage = "https://libexpat.github.io/";
     description = "A stream-oriented XML parser library written in C";
     platforms = platforms.all;
     license = licenses.mit; # expat version