depot/third_party/nixpkgs/pkgs/tools/video/atomicparsley/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

40 lines
1.1 KiB
Nix

{ stdenv, fetchhg, autoreconfHook, zlib, Cocoa }:
stdenv.mkDerivation {
pname = "atomicparsley";
version = "0.9.6";
src = fetchhg {
url = "https://bitbucket.org/wez/atomicparsley";
sha256 = "05n4kbn91ps52h3wi1qb2jwygjsc01qzx4lgkv5mvwl5i49rj8fm";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ zlib ]
++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa ];
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"
];
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
'';
longDescription = ''
This is a maintained fork of the original AtomicParsley.
'';
homepage = "https://bitbucket.org/wez/atomicparsley";
license = licenses.gpl2;
platforms = platforms.unix;
maintainers = with maintainers; [ pjones ];
};
}