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

42 lines
1.2 KiB
Nix
Raw Normal View History

2017-03-21 23:35:54 +01:00
{ stdenv, fetchurl, unzip, darwin }:
2015-03-13 23:06:37 +01:00
stdenv.mkDerivation rec {
name = "atomicparsley-${version}";
product = "AtomicParsley";
2015-03-13 23:06:37 +01:00
version = "0.9.0";
src = fetchurl {
url = "mirror://sourceforge/atomicparsley/${product}-source-${version}.zip";
2015-03-13 23:06:37 +01:00
sha256 = "de83f219f95e6fe59099b277e3ced86f0430ad9468e845783092821dff15a72e";
};
2017-03-21 23:35:54 +01:00
patches = stdenv.lib.optional (!stdenv.cc.isClang) ./casts.patch;
buildInputs = [ unzip ]
++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Cocoa;
2015-05-16 14:00:19 +02:00
setSourceRoot = "sourceRoot=${product}-source-${version}";
2017-03-21 23:35:54 +01:00
2015-03-13 23:06:37 +01:00
buildPhase = "bash build";
installPhase = "install -D AtomicParsley $out/bin/AtomicParsley";
2016-08-11 05:42:51 +02:00
postPatch = ''
substituteInPlace build \
--replace 'g++' 'c++'
substituteInPlace AP_NSImage.mm \
--replace '_NSBitmapImageFileType' 'NSBitmapImageFileType'
'';
2015-03-13 23:06:37 +01:00
meta = with stdenv.lib; {
description = ''
A lightweight command line program for reading, parsing and
setting metadata into MPEG-4 files
'';
homepage = http://atomicparsley.sourceforge.net/;
license = licenses.gpl2;
platforms = platforms.unix;
maintainers = with maintainers; [ pjones ];
};
}