Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 29 lines 857 B view raw
1{ lib, stdenv, fetchFromGitHub, postgresql }: 2 3stdenv.mkDerivation rec { 4 pname = "pg_relusage"; 5 version = "0.0.1"; 6 7 buildInputs = [ postgresql ]; 8 9 src = fetchFromGitHub { 10 owner = "adept"; 11 repo = pname; 12 rev = "refs/tags/${version}"; 13 sha256 = "8hJNjQ9MaBk3J9a73l+yQMwMW/F2N8vr5PO2o+5GvYs="; 14 }; 15 16 installPhase = '' 17 install -D -t $out/lib *${postgresql.dlSuffix} 18 install -D -t $out/share/postgresql/extension *.sql 19 install -D -t $out/share/postgresql/extension *.control 20 ''; 21 22 meta = with lib; { 23 description = "pg_relusage extension for PostgreSQL: discover and log the relations used in your statements"; 24 homepage = "https://github.com/adept/pg_relusage"; 25 maintainers = with maintainers; [ thenonameguy ]; 26 platforms = postgresql.meta.platforms; 27 license = licenses.postgresql; 28 }; 29}