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