2019-06-19 17:30:07 +00:00
|
|
|
{ stdenv, fetchhg, autoreconfHook, zlib, Cocoa }:
|
2015-03-13 22:06:37 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-08-11 03:42:32 +00:00
|
|
|
name = "atomicparsley-${version}";
|
2017-04-14 19:10:28 +00:00
|
|
|
version = "0.9.6";
|
2015-03-13 22:06:37 +00:00
|
|
|
|
2017-04-14 19:10:28 +00:00
|
|
|
src = fetchhg {
|
|
|
|
url = "https://bitbucket.org/wez/atomicparsley";
|
|
|
|
sha256 = "05n4kbn91ps52h3wi1qb2jwygjsc01qzx4lgkv5mvwl5i49rj8fm";
|
2015-03-13 22:06:37 +00:00
|
|
|
};
|
|
|
|
|
2018-11-05 18:12:46 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
buildInputs = [ zlib ]
|
2019-06-19 17:30:07 +00:00
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa ];
|
2017-03-21 22:35:54 +00:00
|
|
|
|
2019-05-01 22:15:30 +00: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 22:06:37 +00: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 19:10:28 +00:00
|
|
|
longDescription = ''
|
|
|
|
This is a maintained fork of the original AtomicParsley.
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = https://bitbucket.org/wez/atomicparsley;
|
2015-03-13 22:06:37 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ pjones ];
|
|
|
|
};
|
|
|
|
}
|