uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
35
pkgs/tools/graphics/cfdg/default.nix
Normal file
35
pkgs/tools/graphics/cfdg/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ lib, stdenv, fetchFromGitHub, libpng, bison, flex, ffmpeg, icu }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cfdg";
|
||||
version = "3.3";
|
||||
src = fetchFromGitHub {
|
||||
owner = "MtnViewJohn";
|
||||
repo = "context-free";
|
||||
rev = "Version${version}";
|
||||
sha256 = "13m8npccacmgxbs4il45zw53dskjh53ngv2nxahwqw8shjrws4mh";
|
||||
};
|
||||
|
||||
buildInputs = [ libpng bison flex ffmpeg icu ];
|
||||
|
||||
postPatch = ''
|
||||
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 = ''
|
||||
mkdir -p $out/bin
|
||||
cp cfdg $out/bin/
|
||||
|
||||
mkdir -p $out/share/doc/${pname}-${version}
|
||||
cp *.txt $out/share/doc/${pname}-${version}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Context-free design grammar - a tool for graphics generation";
|
||||
maintainers = with maintainers; [ raskin ];
|
||||
platforms = platforms.linux;
|
||||
homepage = "https://contextfreeart.org/";
|
||||
license = licenses.gpl2;
|
||||
};
|
||||
}
|
||||
9
pkgs/tools/graphics/cfdg/src-for-default.nix
Normal file
9
pkgs/tools/graphics/cfdg/src-for-default.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
version="3.0.2";
|
||||
name="cfdg-3.0.2";
|
||||
hash="1pd1hjippbhad8l4s4lsglykh22i24qfrgmnxrsx71bvcqbr356p";
|
||||
url="http://www.contextfreeart.org/download/ContextFreeSource3.0.2.tgz";
|
||||
advertisedUrl="http://www.contextfreeart.org/download/ContextFreeSource3.0.2.tgz";
|
||||
|
||||
|
||||
}
|
||||
6
pkgs/tools/graphics/cfdg/src-info-for-default.nix
Normal file
6
pkgs/tools/graphics/cfdg/src-info-for-default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
downloadPage = "https://contextfreeart.org/mediawiki/index.php/Download_page";
|
||||
baseName = "cfdg";
|
||||
sourceRegexp = ".*[.]tgz";
|
||||
versionExtractorSedScript = ''s/[^0-9]*([0-9.]*)[.]tgz/\1/'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue