2022-06-16 17:23:12 +00:00
|
|
|
{ fetchFromGitLab
|
|
|
|
, glib
|
|
|
|
, lib
|
|
|
|
, pkg-config
|
|
|
|
, scons
|
|
|
|
, stdenv
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "hammer";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "nightly_20220416";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.special-circumstanc.es";
|
|
|
|
owner = "hammer";
|
2022-03-30 09:31:56 +00:00
|
|
|
repo = "hammer";
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-xMZhUnycGeHkNZfHQ2d9mETti8HwGHZNskFqh9f0810=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
nativeBuildInputs = [ pkg-config scons ];
|
|
|
|
buildInputs = [ glib ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A bit-oriented parser combinator library";
|
|
|
|
longDescription = ''
|
2022-06-16 17:23:12 +00:00
|
|
|
Hammer is a parsing library. Like many modern parsing libraries, it
|
|
|
|
provides a parser combinator interface for writing grammars as inline
|
|
|
|
domain-specific languages, but Hammer also provides a variety of parsing
|
|
|
|
backends. It's also bit-oriented rather than character-oriented, making it
|
|
|
|
ideal for parsing binary data such as images, network packets, audio, and
|
|
|
|
executables.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://gitlab.special-circumstanc.es/hammer/hammer";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ azahi ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|