cfdg: remove src-for-default.nix, cleanups (#192727)

This commit is contained in:
erdnaxe 2022-10-04 15:32:21 +02:00 committed by GitHub
parent d27df0969e
commit a2c41adf73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 11 deletions

View File

@ -10,7 +10,8 @@ stdenv.mkDerivation rec {
sha256 = "13m8npccacmgxbs4il45zw53dskjh53ngv2nxahwqw8shjrws4mh";
};
buildInputs = [ libpng bison flex ffmpeg icu ];
nativeBuildInputs = [ bison flex ];
buildInputs = [ libpng ffmpeg icu ];
postPatch = ''
sed -e "/YY_NO_UNISTD/a#include <stdio.h>" -i src-common/cfdg.l
@ -18,11 +19,15 @@ stdenv.mkDerivation rec {
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp cfdg $out/bin/
mkdir -p $out/share/doc/${pname}-${version}
cp *.txt $out/share/doc/${pname}-${version}
runHook postInstall
'';
meta = with lib; {
@ -30,6 +35,6 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
homepage = "https://contextfreeart.org/";
license = licenses.gpl2;
license = licenses.gpl2Only;
};
}

View File

@ -1,9 +0,0 @@
{
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";
}