12 rustPlatform.buildRustPackage rec {
16 src = fetchFromGitHub {
20 hash = "sha256-RnY41G0ombqJewv+kxvg8AwQeRaVb+frZjmU/Cd28Jo=";
23 cargoHash = "sha256-YR2ZSwrCkX8eyHTj1Dtk9f01/y9fDtknouige68kS8I=";
27 rustPlatform.bindgenHook
30 buildInputs = lib.optionals (!stdenv.isDarwin) [
33 ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
38 OPENSSL_NO_VENDOR = 1;
40 LIBPG_QUERY_PATH = libpg_query;
43 # depends on the PostgreSQL version
44 "--skip=parse::tests::test_parse_sql_query_json"
48 description = "Linter for PostgreSQL, focused on migrations";
49 homepage = "https://squawkhq.com/";
50 changelog = "https://github.com/sbdchd/squawk/blob/v${version}/CHANGELOG.md";
51 license = licenses.gpl3Only;
52 maintainers = with lib.maintainers; [ andrewsmith marsam ];