Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 pkg-config,
6 oniguruma,
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "pomsky";
11 version = "0.11";
12
13 src = fetchFromGitHub {
14 owner = "pomsky-lang";
15 repo = "pomsky";
16 rev = "v${version}";
17 hash = "sha256-BoA59P0jzV08hlFO7NPB9E+fdpYB9G50dNggFkexc/c=";
18 };
19
20 cargoHash = "sha256-/tJwJ/xF5a2NEP5A/3swq75wCk9qxgbp7ilH1PqcWJY=";
21
22 nativeBuildInputs = [
23 pkg-config
24 rustPlatform.bindgenHook
25 ];
26
27 buildInputs = [
28 oniguruma
29 ];
30
31 env = {
32 RUSTONIG_SYSTEM_LIBONIG = true;
33 };
34
35 # thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: invalid option '--test-threads''
36 doCheck = false;
37
38 meta = {
39 description = "Portable, modern regular expression language";
40 mainProgram = "pomsky";
41 homepage = "https://pomsky-lang.org";
42 changelog = "https://github.com/pomsky-lang/pomsky/blob/v${version}/CHANGELOG.md";
43 license = with lib.licenses; [
44 mit # or
45 asl20
46 ];
47 maintainers = with lib.maintainers; [ figsoda ];
48 };
49}