nixpkgs-suyu/pkgs/development/tools/parsing/hammer/default.nix
Matthew Bauer bfbfe941ab treewide: use scons setup hook
Lots of packages can use it. Here is the list:

- jackmix
- klick
- mixx
- nova-filters
- rhvoice
- giv
- mypaint
- swift-im
- bombono
- mapnik
- serf
- nuitka
- pyexiv2
- godot
- hammer
- toluapp
- btanks
- dxx-rebirth
- endless-sky
- globulation
- the-powder-toy
- fceux
- gpsd
- mongodb
- rippled
- mariadb
- lprof
2018-11-13 19:14:10 -06:00

30 lines
1.1 KiB
Nix

{ stdenv, fetchgit, glib, pkgconfig, python, scons }:
stdenv.mkDerivation rec {
name = "hammer-${version}";
version = "e7aa734";
src = fetchgit {
url = "git://github.com/UpstandingHackers/hammer";
sha256 = "01l0wbhz7dymxlndacin2vi8sqwjlw81ds2i9xyi200w51nsdm38";
rev = "47f34b81e4de834fd3537dd71928c4f3cdb7f533";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ glib python scons ];
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;
};
}