mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
ming: 0.4.5 -> 0.4.7
Split outputs - bin: 1.7mb - dev: 127kb - out: 472kb
This commit is contained in:
parent
c82b6c6116
commit
e05dd52f3d
|
@ -1,22 +1,32 @@
|
||||||
{ fetchurl, stdenv, flex, bison, freetype, zlib, libpng
|
{ stdenv, fetchFromGitHub
|
||||||
, perl }:
|
, autoreconfHook, flex, bison, perl
|
||||||
|
, zlib, freetype, libpng, giflib
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "ming-0.4.5";
|
pname = "ming";
|
||||||
|
version = "0.4.7";
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "mirror://sourceforge/ming/${name}.tar.bz2";
|
repo = "libming";
|
||||||
sha256 = "1sws4cs9i9hysr1l0b8hsmqf4gh06ldc24fw6avzr9y3vydhinl2";
|
owner = "libming";
|
||||||
|
rev = "${pname}-${stdenv.lib.replaceStrings ["."] ["_"] version}";
|
||||||
|
sha256 = "17ngz1n1mnknixzchywkhbw9s3scad8ajmk97gx14xbsw1603gd2";
|
||||||
};
|
};
|
||||||
|
|
||||||
# We don't currently build the Python, Perl, PHP, etc. bindings.
|
# We don't currently build the Python, Perl, PHP, etc. bindings.
|
||||||
# Perl is needed for the test suite, though.
|
# Perl is needed for the test suite, though.
|
||||||
|
|
||||||
buildInputs = [ flex bison freetype zlib libpng perl ];
|
outputs = [ "dev" "out" "bin" ];
|
||||||
|
nativeBuildInputs = [ autoreconfHook flex bison perl ];
|
||||||
|
buildInputs = [ freetype zlib libpng giflib ];
|
||||||
|
|
||||||
|
postFixup = ''moveToOutput "bin/ming-config" $dev'';
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "Library for generating Flash `.swf' files";
|
description = "Library for generating Flash `.swf' files";
|
||||||
|
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
@ -28,6 +38,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
homepage = http://www.libming.org/;
|
homepage = http://www.libming.org/;
|
||||||
|
|
||||||
license = stdenv.lib.licenses.lgpl2Plus;
|
license = licenses.lgpl2Plus;
|
||||||
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue