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";
|
2014-10-29 05:35:33 +00:00
|
|
|
sha256 = "1v8f2a6bgjgdkhbqz751bqjlwb9lmqn5x63xcskwcl2b9n36vqi9";
|
2014-10-29 05:49:10 +00:00
|
|
|
rev = "e7aa73446e23f4af2fce5f88572aae848f212c16";
|
2014-10-29 07:16:41 +00:00
|
|
|
};
|
2014-10-29 03:00:55 +00:00
|
|
|
|
2014-10-29 07:16:41 +00:00
|
|
|
buildInputs = [ glib pkgconfig python scons ];
|
|
|
|
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; {
|
|
|
|
description = "Hammer is a parsing library";
|
|
|
|
longDescription = "Hammer is a parsing library. Like many modern parsing libraries,
|
2014-10-29 03:00:55 +00:00
|
|
|
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-10-29 03:00:55 +00:00
|
|
|
}
|