Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 32 lines 914 B view raw
1{ lib, stdenv, fetchFromGitHub, postgresql }: 2 3stdenv.mkDerivation rec { 4 pname = "pg_hll"; 5 version = "2.17"; 6 7 buildInputs = [ postgresql ]; 8 9 src = fetchFromGitHub { 10 owner = "citusdata"; 11 repo = "postgresql-hll"; 12 rev = "refs/tags/v${version}"; 13 sha256 = "sha256-KYpyidy7t7v9puNjjmif16uz383zlo521luZpH3w/1I="; 14 }; 15 16 installPhase = '' 17 mkdir -p $out/{lib,share/postgresql/extension} 18 19 cp *.so $out/lib 20 cp *.sql $out/share/postgresql/extension 21 cp *.control $out/share/postgresql/extension 22 ''; 23 24 meta = with lib; { 25 description = "HyperLogLog for PostgreSQL"; 26 homepage = "https://github.com/citusdata/postgresql-hll"; 27 changelog = "https://github.com/citusdata/postgresql-hll/raw/v${version}/CHANGELOG.md"; 28 maintainers = with maintainers; [ thoughtpolice ]; 29 platforms = postgresql.meta.platforms; 30 license = licenses.asl20; 31 }; 32}