lol
1{stdenv, fetchurl, fetchpatch}:
2
3stdenv.mkDerivation rec {
4 name = "libxdg-basedir-1.2.0";
5 src = fetchurl {
6 url = "https://nevill.ch/libxdg-basedir/downloads/${name}.tar.gz";
7 sha256 = "2757a949618742d80ac59ee2f0d946adc6e71576406cdf798e6ced507708cdf4";
8 };
9
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;
20 description = "Implementation of the XDG Base Directory specification";
21 license = licenses.mit;
22 platforms = platforms.unix;
23 };
24}