1 { lib, stdenv, fetchFromGitHub, libpng, bison, flex, ffmpeg, icu }:
3 stdenv.mkDerivation rec {
6 src = fetchFromGitHub {
9 rev = "Version${version}";
10 sha256 = "sha256-f2VMb0TM50afKf/lGdZBP2z13UrCVgG4/IYi5gnD+ow=";
13 nativeBuildInputs = [ bison flex ];
14 buildInputs = [ libpng ffmpeg icu ];
17 sed -e "/YY_NO_UNISTD/a#include <stdio.h>" -i src-common/cfdg.l
18 sed -e '1i#include <algorithm>' -i src-common/{cfdg,builder,ast}.cpp
27 mkdir -p $out/share/doc/${pname}-${version}
28 cp *.txt $out/share/doc/${pname}-${version}
34 description = "Context-free design grammar - a tool for graphics generation";
35 maintainers = with maintainers; [ raskin ];
36 platforms = platforms.linux;
37 homepage = "https://contextfreeart.org/";
38 license = licenses.gpl2Only;