2021-01-18 22:50:56 -08:00
|
|
|
{ lib, stdenv, fetchgit, glib, pkg-config, python, scons }:
|
2014-10-29 11:00:55 +08:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "hammer";
|
2014-10-29 16:08:16 +08:00
|
|
|
version = "e7aa734";
|
2014-10-29 11:00:55 +08:00
|
|
|
|
2014-10-29 15:16:41 +08:00
|
|
|
src = fetchgit {
|
2014-10-29 11:00:55 +08:00
|
|
|
url = "git://github.com/UpstandingHackers/hammer";
|
2016-06-02 14:26:44 +03:00
|
|
|
sha256 = "01l0wbhz7dymxlndacin2vi8sqwjlw81ds2i9xyi200w51nsdm38";
|
2014-12-27 21:36:50 +08:00
|
|
|
rev = "47f34b81e4de834fd3537dd71928c4f3cdb7f533";
|
2014-10-29 15:16:41 +08:00
|
|
|
};
|
2014-10-29 11:00:55 +08:00
|
|
|
|
2021-01-18 22:50:56 -08:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 17:26:13 -04:00
|
|
|
buildInputs = [ glib python scons ];
|
2014-10-29 11:00:55 +08:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2015-04-30 17:05:14 +02:00
|
|
|
description = "A bit-oriented parser combinator library";
|
|
|
|
longDescription = ''
|
|
|
|
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-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/UpstandingHackers/hammer";
|
2014-10-29 15:16:41 +08:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2018-11-11 20:52:07 -06:00
|
|
|
};
|
2014-12-27 21:36:50 +08:00
|
|
|
}
|