Files
nixpkgs/pkgs/by-name/sq/squawk/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

55 lines
1.1 KiB
Nix

{
fetchFromGitHub,
lib,
libiconv,
libpg_query,
openssl,
pkg-config,
rustPlatform,
stdenv,
}:
rustPlatform.buildRustPackage rec {
pname = "squawk";
version = "2.26.0";
src = fetchFromGitHub {
owner = "sbdchd";
repo = "squawk";
tag = "v${version}";
hash = "sha256-X1vr2WAWkv9puO5CCM6TrFg/5H5buemcplvIeYtk6Qo=";
};
cargoHash = "sha256-eyQQ7bdbu/o5UQ7edjgs3ZLiya/q5c+jgLSWQfAs5ck=";
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
];
buildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [
libiconv
openssl
];
OPENSSL_NO_VENDOR = 1;
LIBPG_QUERY_PATH = libpg_query;
checkFlags = [
# depends on the PostgreSQL version
"--skip=parse::tests::test_parse_sql_query_json"
];
cargoBuildFlags = [
"-p squawk"
];
meta = {
description = "Linter for PostgreSQL, focused on migrations";
homepage = "https://squawkhq.com";
changelog = "https://github.com/sbdchd/squawk/blob/v${version}/CHANGELOG.md";
license = with lib.licenses; [ gpl3Only ];
maintainers = [ ];
};
}