Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at github-to-sqlite-beautifulsoup4 31 lines 819 B view raw
1{ lib, stdenv, fetchFromGitHub, curl, postgresql }: 2 3stdenv.mkDerivation rec { 4 pname = "pg_net"; 5 version = "0.7.2"; 6 7 buildInputs = [ curl postgresql ]; 8 9 src = fetchFromGitHub { 10 owner = "supabase"; 11 repo = pname; 12 rev = "refs/tags/v${version}"; 13 hash = "sha256-9Ki3fyinHTYrfckxAY0fCTlzJd9l+n7QRUV7mIWrqmc="; 14 }; 15 16 installPhase = '' 17 mkdir -p $out/{lib,share/postgresql/extension} 18 19 cp *.so $out/lib 20 cp sql/*.sql $out/share/postgresql/extension 21 cp *.control $out/share/postgresql/extension 22 ''; 23 24 meta = with lib; { 25 description = "Async networking for Postgres"; 26 homepage = "https://github.com/supabase/pg_net"; 27 maintainers = with maintainers; [ thoughtpolice ]; 28 platforms = postgresql.meta.platforms; 29 license = licenses.postgresql; 30 }; 31}