2018-11-05 19:12:46 +01:00
|
|
|
{ stdenv, fetchhg, autoreconfHook, zlib, cf-private, Cocoa }:
|
2015-03-13 23:06:37 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-08-11 05:42:32 +02:00
|
|
|
name = "atomicparsley-${version}";
|
2017-04-14 21:10:28 +02:00
|
|
|
version = "0.9.6";
|
2015-03-13 23:06:37 +01:00
|
|
|
|
2017-04-14 21:10:28 +02:00
|
|
|
src = fetchhg {
|
|
|
|
url = "https://bitbucket.org/wez/atomicparsley";
|
|
|
|
sha256 = "05n4kbn91ps52h3wi1qb2jwygjsc01qzx4lgkv5mvwl5i49rj8fm";
|
2015-03-13 23:06:37 +01:00
|
|
|
};
|
|
|
|
|
2018-11-05 19:12:46 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
buildInputs = [ zlib ]
|
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [
|
|
|
|
Cocoa
|
|
|
|
# Needed for OBJC_CLASS_$_NSDictionary symbols.
|
|
|
|
cf-private
|
|
|
|
];
|
2017-03-21 23:35:54 +01:00
|
|
|
|
2019-05-02 00:15:30 +02:00
|
|
|
configureFlags = stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
|
|
|
# AC_FUNC_MALLOC is broken on cross builds.
|
|
|
|
"ac_cv_func_malloc_0_nonnull=yes"
|
|
|
|
"ac_cv_func_realloc_0_nonnull=yes"
|
|
|
|
];
|
|
|
|
|
2015-03-13 23:06:37 +01:00
|
|
|
installPhase = "install -D AtomicParsley $out/bin/AtomicParsley";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = ''
|
|
|
|
A lightweight command line program for reading, parsing and
|
|
|
|
setting metadata into MPEG-4 files
|
|
|
|
'';
|
|
|
|
|
2017-04-14 21:10:28 +02:00
|
|
|
longDescription = ''
|
|
|
|
This is a maintained fork of the original AtomicParsley.
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = https://bitbucket.org/wez/atomicparsley;
|
2015-03-13 23:06:37 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ pjones ];
|
|
|
|
};
|
|
|
|
}
|