python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / libxdg-basedir / default.nix
blob77047e9099d2871d871c412fab2e0a6daf832e83
1 {lib, stdenv, fetchurl, fetchpatch}:
3 stdenv.mkDerivation rec {
4   pname = "libxdg-basedir";
5   version = "1.2.0";
7   src = fetchurl {
8     url = "https://nevill.ch/libxdg-basedir/downloads/libxdg-basedir-${version}.tar.gz";
9     sha256 = "2757a949618742d80ac59ee2f0d946adc6e71576406cdf798e6ced507708cdf4";
10   };
12   patches = [
13     # Overflow bug
14     (fetchpatch {
15       url = "https://github.com/devnev/libxdg-basedir/commit/14e000f696ef8b83264b0ca4407669bdb365fb23.patch";
16       sha256 = "0lpy1ijir0x0hhb0fz0w5vxy1wl1cw9kkd6gva0rkp41i6vrp2wq";
17     })
18   ];
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   };