1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/parsing/hammer/default.nix

33 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchgit, glib, pkgconfig, python, scons }:
stdenv.mkDerivation rec {
name = "hammer-${version}";
2014-10-29 08:08:16 +00:00
version = "e7aa734";
src = fetchgit {
url = "git://github.com/UpstandingHackers/hammer";
sha256 = "01l0wbhz7dymxlndacin2vi8sqwjlw81ds2i9xyi200w51nsdm38";
2014-12-27 13:36:50 +00:00
rev = "47f34b81e4de834fd3537dd71928c4f3cdb7f533";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ glib python scons ];
buildPhase = "scons prefix=$out";
installPhase = "scons prefix=$out install";
meta = with stdenv.lib; {
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.
'';
homepage = https://github.com/UpstandingHackers/hammer;
license = licenses.gpl2;
platforms = platforms.linux;
};
2014-12-27 13:36:50 +00:00
}