python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / libcredis / default.nix
blobe0224d865d55955a3ea511c662b5f860d11157c8
1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
4   pname = "libcredis";
5   version = "0.2.3";
7   src = fetchurl {
8     url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/credis/credis-${version}.tar.gz";
9     sha256 = "1l3hlw9rrc11qggbg9a2303p3bhxxx2vqkmlk8avsrbqw15r1ayr";
10   };
12   # credis build system has no install actions, provide our own.
13   installPhase = ''
14     mkdir -p "$out/bin"
15     mkdir -p "$out/lib"
16     mkdir -p "$out/include"
18     cp -v credis-test "$out/bin/"
19     cp -v *.a *.so "$out/lib/"
20     cp -v *.h "$out/include/"
21   '';
23   meta = with lib; {
24     description = "C client library for Redis (key-value database)";
25     homepage = "https://code.google.com/archive/p/credis/";
26     license = licenses.bsd3; # from homepage
27     platforms = platforms.all;
28     maintainers = [ maintainers.bjornfor ];
29   };