nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 22.05 53 lines 954 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, autoreconfHook 5, nix-update-script 6, python3 7 8# for passthru.tests 9, ninja 10, php 11, spamassassin 12}: 13 14stdenv.mkDerivation rec { 15 pname = "re2c"; 16 version = "3.0"; 17 18 src = fetchFromGitHub { 19 owner = "skvadrik"; 20 repo = "re2c"; 21 rev = version; 22 sha256 = "sha256-ovwmltu97fzNQT0oZHefrAo4yV9HV1NwcY4PTSM5Bro="; 23 }; 24 25 nativeBuildInputs = [ 26 autoreconfHook 27 python3 28 ]; 29 30 doCheck = true; 31 enableParallelBuilding = true; 32 33 preCheck = '' 34 patchShebangs run_tests.py 35 ''; 36 37 passthru = { 38 updateScript = nix-update-script { 39 attrPath = pname; 40 }; 41 tests = { 42 inherit ninja php spamassassin; 43 }; 44 }; 45 46 meta = with lib; { 47 description = "Tool for writing very fast and very flexible scanners"; 48 homepage = "https://re2c.org"; 49 license = licenses.publicDomain; 50 platforms = platforms.all; 51 maintainers = with maintainers; [ thoughtpolice ]; 52 }; 53}