cfdg: 3.0.9 -> 3.2_2, fix build
This commit is contained in:
parent
a7ffeaae61
commit
4eba7020b9
@ -1,17 +1,20 @@
|
|||||||
{ stdenv, fetchurl, libpng, bison, flex, ffmpeg }:
|
{ stdenv, fetchFromGitHub, libpng, bison, flex, ffmpeg, icu }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "cfdg";
|
pname = "cfdg";
|
||||||
version = "3.0.9";
|
version = "3.2_2";
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
sha256 = "1jqpinz6ri4a2l04mf2z1ljalkdk1m07hj47lqkh8gbf2slfs0jl";
|
owner = "MtnViewJohn";
|
||||||
url = "http://www.contextfreeart.org/download/ContextFreeSource${version}.tgz";
|
repo = "context-free";
|
||||||
|
rev = "Version${version}";
|
||||||
|
sha256 = "14v1gya7h0p9dj16hw87wpmjfddmkz537w3kjvaribgxxp0gzyz5";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libpng bison flex ffmpeg ];
|
buildInputs = [ libpng bison flex ffmpeg icu ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -e "/YY_NO_UNISTD/a#include <stdio.h>" -i src-common/cfdg.l
|
sed -e "/YY_NO_UNISTD/a#include <stdio.h>" -i src-common/cfdg.l
|
||||||
|
sed -e '1i#include <algorithm>' -i src-common/{cfdg,builder,ast}.cpp
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
@ -26,8 +29,7 @@ stdenv.mkDerivation rec {
|
|||||||
description = "Context-free design grammar - a tool for graphics generation";
|
description = "Context-free design grammar - a tool for graphics generation";
|
||||||
maintainers = with maintainers; [ raskin ];
|
maintainers = with maintainers; [ raskin ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
homepage = https://contextfreeart.org/;
|
homepage = "https://contextfreeart.org/";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
downloadPage = "https://contextfreeart.org/mediawiki/index.php/Download_page";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user