Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 34 lines 858 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 postgresql, 6 postgresqlTestExtension, 7 buildPostgresqlExtension, 8}: 9 10buildPostgresqlExtension (finalAttrs: { 11 pname = "plpgsql-check"; 12 version = "2.7.12"; 13 14 src = fetchFromGitHub { 15 owner = "okbob"; 16 repo = "plpgsql_check"; 17 rev = "v${finalAttrs.version}"; 18 hash = "sha256-sLakN4595z+Smt7oaK7IPIJZp/JIGwL5UB4OXQek7JU="; 19 }; 20 21 passthru.tests.extension = postgresqlTestExtension { 22 inherit (finalAttrs) finalPackage; 23 sql = "CREATE EXTENSION plpgsql_check;"; 24 }; 25 26 meta = with lib; { 27 description = "Linter tool for language PL/pgSQL"; 28 homepage = "https://github.com/okbob/plpgsql_check"; 29 changelog = "https://github.com/okbob/plpgsql_check/releases/tag/v${finalAttrs.version}"; 30 platforms = postgresql.meta.platforms; 31 license = licenses.mit; 32 maintainers = [ ]; 33 }; 34})