nixpkgs/pkgs/tools/video/atomicparsley/default.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

2019-06-19 19:30:07 +02:00
{ stdenv, fetchhg, autoreconfHook, zlib, Cocoa }:
2015-03-13 23:06:37 +01:00
2019-08-13 23:52:01 +02:00
stdenv.mkDerivation {
pname = "atomicparsley";
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
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ zlib ]
2019-06-19 19:30:07 +02:00
++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa ];
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 ];
};
}