2014-10-29 03:00:55 +00:00
|
|
|
{ stdenv, fetchgit, glib, pkgconfig, python, scons, pythonPackages }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-10-29 07:16:41 +00:00
|
|
|
name = "hammer-${version}";
|
2014-10-29 08:08:16 +00:00
|
|
|
version = "e7aa734";
|
2014-10-29 03:00:55 +00:00
|
|
|
|
2014-10-29 07:16:41 +00:00
|
|
|
src = fetchgit {
|
2014-10-29 03:00:55 +00:00
|
|
|
url = "git://github.com/UpstandingHackers/hammer";
|
2016-06-02 11:26:44 +00:00
|
|
|
sha256 = "01l0wbhz7dymxlndacin2vi8sqwjlw81ds2i9xyi200w51nsdm38";
|
2014-12-27 13:36:50 +00:00
|
|
|
rev = "47f34b81e4de834fd3537dd71928c4f3cdb7f533";
|
2014-10-29 07:16:41 +00:00
|
|
|
};
|
2014-10-29 03:00:55 +00:00
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ glib python scons ];
|
2014-10-29 07:16:41 +00:00
|
|
|
buildPhase = "scons prefix=$out";
|
|
|
|
installPhase = "scons prefix=$out install";
|
2014-10-29 03:00:55 +00:00
|
|
|
|
2014-10-29 07:16:41 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-04-30 15:05:14 +00: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.
|
|
|
|
'';
|
2014-10-29 07:16:41 +00:00
|
|
|
homepage = https://github.com/UpstandingHackers/hammer;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2014-12-27 13:36:50 +00:00
|
|
|
}
|