libxdg-basedir: 1.0.2 -> 1.2.0

minor fixes:
* upstream patch for overflow bug
* license is MIT, at least it is now

+16 -8
+16 -8
pkgs/development/libraries/libxdg-basedir/default.nix
··· 1 - {stdenv, fetchurl}: 1 + {stdenv, fetchurl, fetchpatch}: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "libxdg-basedir-1.0.2"; 4 + name = "libxdg-basedir-1.2.0"; 5 5 src = fetchurl { 6 - url = "http://n.ethz.ch/student/nevillm/download/libxdg-basedir/${name}.tar.gz"; 7 - sha256 = "0fibbzba228gdk05lfi8cgfrsp80a2gnjbwka0pzpkig0fz8pp9i"; 6 + url = "https://nevill.ch/libxdg-basedir/downloads/${name}.tar.gz"; 7 + sha256 = "2757a949618742d80ac59ee2f0d946adc6e71576406cdf798e6ced507708cdf4"; 8 8 }; 9 9 10 - meta = { 11 - homepage = http://n.ethz.ch/student/nevillm/download/libxdg-basedir/; 10 + patches = [ 11 + # Overflow bug 12 + (fetchpatch { 13 + url = "https://github.com/devnev/libxdg-basedir/commit/14e000f696ef8b83264b0ca4407669bdb365fb23.patch"; 14 + sha256 = "0lpy1ijir0x0hhb0fz0w5vxy1wl1cw9kkd6gva0rkp41i6vrp2wq"; 15 + }) 16 + ]; 17 + 18 + meta = with stdenv.lib; { 19 + homepage = https://github.com/devnev/libxdg-basedir; 12 20 description = "Implementation of the XDG Base Directory specification"; 13 - license = "BSD"; 14 - platforms = stdenv.lib.platforms.unix; 21 + license = licenses.mit; 22 + platforms = platforms.unix; 15 23 }; 16 24 }