Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions pkgs/development/tools/parsing/hammer/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{ stdenv, fetchgit, glib, pkgconfig, python, scons, pythonPackages }:

stdenv.mkDerivation rec {
name = "hammer-${version}";
version = "e7aa734";

src = fetchgit {
url = "git://github.com/UpstandingHackers/hammer";
sha256 = "1v8f2a6bgjgdkhbqz751bqjlwb9lmqn5x63xcskwcl2b9n36vqi9";
rev = "e7aa73446e23f4af2fce5f88572aae848f212c16";
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


buildInputs = [ glib pkgconfig python scons ];
buildPhase = "scons prefix=$out";
installPhase = "scons prefix=$out install";

meta = with stdenv.lib; {
description = "Hammer is a parsing 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.";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

description is one line long, for longer descriptions use longDescription meta field

homepage = https://github.com/UpstandingHackers/hammer;
license = licenses.gpl2;
platforms = platforms.linux;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4558,6 +4558,8 @@ let

ragel = callPackage ../development/tools/parsing/ragel { };

hammer = callPackage ../development/tools/parsing/hammer { };

re2c = callPackage ../development/tools/parsing/re2c { };

remake = callPackage ../development/tools/build-managers/remake { };
Expand Down