Files
nixpkgs/pkgs/by-name/pr/prqlc/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

53 lines
1.0 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
sqlite,
zlib,
python3,
}:
rustPlatform.buildRustPackage rec {
pname = "prqlc";
version = "0.13.4";
src = fetchFromGitHub {
owner = "prql";
repo = "prql";
rev = version;
hash = "sha256-lJkZXiwZUr/qACb9X52EGR0FBOicuPMmyA1105G7gZU=";
};
cargoHash = "sha256-Dq5jfj5Z4W9x43LncgWspOWVtGnsJPQ8xvC1gGYiPYw=";
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
];
buildInputs = [
openssl
sqlite
zlib
];
env = {
PYO3_PYTHON = "${python3}/bin/python3";
};
# we are only interested in the prqlc binary
postInstall = ''
rm -r $out/bin/compile-files $out/bin/mdbook-prql $out/lib
'';
meta = with lib; {
description = "CLI for the PRQL compiler - a simple, powerful, pipelined SQL replacement";
homepage = "https://github.com/prql/prql";
changelog = "https://github.com/prql/prql/blob/${src.rev}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ dit7ya ];
};
}