summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2016-06-02 00:19:48 +0200
committerJoachim Fasting <joachifm@fastmail.fm>2016-06-02 00:22:08 +0200
commite05dd52f3dc7c6a1c7d629ae5d68d24bfabaafa5 (patch)
treebc4d8cceab89055c95849a5b9a4a39f00f0ed3d3 /pkgs
parentc82b6c61161d721691c1618a843a31fea94d23fb (diff)
downloadnixpkgs-e05dd52f3dc7c6a1c7d629ae5d68d24bfabaafa5.tar
nixpkgs-e05dd52f3dc7c6a1c7d629ae5d68d24bfabaafa5.tar.gz
nixpkgs-e05dd52f3dc7c6a1c7d629ae5d68d24bfabaafa5.tar.bz2
nixpkgs-e05dd52f3dc7c6a1c7d629ae5d68d24bfabaafa5.tar.lz
nixpkgs-e05dd52f3dc7c6a1c7d629ae5d68d24bfabaafa5.tar.xz
nixpkgs-e05dd52f3dc7c6a1c7d629ae5d68d24bfabaafa5.tar.zst
nixpkgs-e05dd52f3dc7c6a1c7d629ae5d68d24bfabaafa5.zip
ming: 0.4.5 -> 0.4.7
Split outputs
- bin: 1.7mb
- dev: 127kb
- out: 472kb
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/ming/default.nix31
1 files changed, 21 insertions, 10 deletions
diff --git a/pkgs/development/libraries/ming/default.nix b/pkgs/development/libraries/ming/default.nix
index 9df90555218..ba512ec5d8c 100644
--- a/pkgs/development/libraries/ming/default.nix
+++ b/pkgs/development/libraries/ming/default.nix
@@ -1,22 +1,32 @@
-{ fetchurl, stdenv, flex, bison, freetype, zlib, libpng
-, perl }:
+{ stdenv, fetchFromGitHub
+, autoreconfHook, flex, bison, perl
+, zlib, freetype, libpng, giflib
+}:
 
 stdenv.mkDerivation rec {
-  name = "ming-0.4.5";
-
-  src = fetchurl {
-    url = "mirror://sourceforge/ming/${name}.tar.bz2";
-    sha256 = "1sws4cs9i9hysr1l0b8hsmqf4gh06ldc24fw6avzr9y3vydhinl2";
+  pname = "ming";
+  version = "0.4.7";
+  name = "${pname}-${version}";
+
+  src = fetchFromGitHub {
+    repo = "libming";
+    owner = "libming";
+    rev = "${pname}-${stdenv.lib.replaceStrings ["."] ["_"] version}";
+    sha256 = "17ngz1n1mnknixzchywkhbw9s3scad8ajmk97gx14xbsw1603gd2";
   };
 
   # We don't currently build the Python, Perl, PHP, etc. bindings.
   # 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;
 
-  meta = {
+  meta = with stdenv.lib; {
     description = "Library for generating Flash `.swf' files";
 
     longDescription = ''
@@ -28,6 +38,7 @@ stdenv.mkDerivation rec {
 
     homepage = http://www.libming.org/;
 
-    license = stdenv.lib.licenses.lgpl2Plus;
+    license = licenses.lgpl2Plus;
+    platforms = platforms.unix;
   };
 }