nixpkgs/pkgs/tools/text/pomsky/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1.1 KiB
Nix
Raw Normal View History

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