Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 pname = "libcredis"; 5 version = "0.2.3"; 6 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 }; 11 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" 17 18 cp -v credis-test "$out/bin/" 19 cp -v *.a *.so "$out/lib/" 20 cp -v *.h "$out/include/" 21 ''; 22 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 }; 30}