nixpkgs-suyu/pkgs/tools/video/atomicparsley/default.nix
Daiderd Jordan c8e480b4da
atomicparsley: include cf-private on darwin
Undefined symbols for architecture x86_64:
      "_OBJC_CLASS_$_NSDictionary", referenced from:
          objc-class-ref in nsfile.o
          objc-class-ref in nsimage.o
    ld: symbol(s) not found for architecture x86_64
2018-11-05 19:13:33 +01:00

38 lines
1,002 B
Nix

{ stdenv, fetchhg, autoreconfHook, zlib, cf-private, Cocoa }:
stdenv.mkDerivation rec {
name = "atomicparsley-${version}";
version = "0.9.6";
src = fetchhg {
url = "https://bitbucket.org/wez/atomicparsley";
sha256 = "05n4kbn91ps52h3wi1qb2jwygjsc01qzx4lgkv5mvwl5i49rj8fm";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ zlib ]
++ stdenv.lib.optionals stdenv.isDarwin [
Cocoa
# Needed for OBJC_CLASS_$_NSDictionary symbols.
cf-private
];
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 ];
};
}