2024-01-02 11:29:13 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, pkg-config, oniguruma }:
|
2022-12-28 21:21:41 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "pomsky";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.11";
|
2022-12-28 21:21:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-03-24 00:07:29 +00:00
|
|
|
owner = "pomsky-lang";
|
2022-12-28 21:21:41 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-BoA59P0jzV08hlFO7NPB9E+fdpYB9G50dNggFkexc/c=";
|
2022-12-28 21:21:41 +00:00
|
|
|
};
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
2024-01-02 11:29:13 +00:00
|
|
|
"onig_sys-69.8.1" = "sha256-NJv/Dooh93yQ9KYyuNBhO1c4U7Gd7X007ECXyRsztrY=";
|
2023-03-27 19:17:25 +00:00
|
|
|
};
|
|
|
|
};
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
rustPlatform.bindgenHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
oniguruma
|
|
|
|
];
|
|
|
|
|
|
|
|
env = {
|
|
|
|
RUSTONIG_SYSTEM_LIBONIG = true;
|
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
# thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: invalid option '--test-threads''
|
|
|
|
doCheck = false;
|
2022-12-28 21:21:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A portable, modern regular expression language";
|
|
|
|
homepage = "https://pomsky-lang.org";
|
2023-03-24 00:07:29 +00:00
|
|
|
changelog = "https://github.com/pomsky-lang/pomsky/blob/v${version}/CHANGELOG.md";
|
2022-12-28 21:21:41 +00:00
|
|
|
license = with licenses; [ mit /* or */ asl20 ];
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|