Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 26 lines 777 B view raw
1{lib, stdenv, fetchurl, fetchpatch}: 2 3stdenv.mkDerivation rec { 4 pname = "libxdg-basedir"; 5 version = "1.2.0"; 6 7 src = fetchurl { 8 url = "https://nevill.ch/libxdg-basedir/downloads/libxdg-basedir-${version}.tar.gz"; 9 sha256 = "2757a949618742d80ac59ee2f0d946adc6e71576406cdf798e6ced507708cdf4"; 10 }; 11 12 patches = [ 13 # Overflow bug 14 (fetchpatch { 15 url = "https://github.com/devnev/libxdg-basedir/commit/14e000f696ef8b83264b0ca4407669bdb365fb23.patch"; 16 sha256 = "0lpy1ijir0x0hhb0fz0w5vxy1wl1cw9kkd6gva0rkp41i6vrp2wq"; 17 }) 18 ]; 19 20 meta = with lib; { 21 homepage = "https://github.com/devnev/libxdg-basedir"; 22 description = "Implementation of the XDG Base Directory specification"; 23 license = licenses.mit; 24 platforms = platforms.unix; 25 }; 26}