mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-10 15:04:44 +00:00
5cf822feb7
I emailed the author to change it upstream since there's no repository.
26 lines
643 B
Nix
26 lines
643 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "peg";
|
|
version = "0.1.20";
|
|
|
|
src = fetchurl {
|
|
url = "${meta.homepage}/${pname}-${version}.tar.gz";
|
|
sha256 = "sha256-uLcXvJOll2ijXWUlZ5pODOlOa/ZvkrrPKXnGR0VytFo=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace Makefile \
|
|
--replace-fail "strip" '$(STRIP)'
|
|
'';
|
|
|
|
preBuild="makeFlagsArray+=( PREFIX=$out )";
|
|
|
|
meta = with lib; {
|
|
homepage = "http://piumarta.com/software/peg/";
|
|
description = "Tools for generating recursive-descent parsers: programs that perform pattern matching on text";
|
|
platforms = platforms.all;
|
|
license = licenses.mit;
|
|
};
|
|
}
|