mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-18 18:14:42 +00:00
cfdg: remove src-for-default.nix, cleanups (#192727)
This commit is contained in:
parent
d27df0969e
commit
a2c41adf73
@ -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;
|
||||
};
|
||||
}
|
||||
|
@ -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";
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user