2015-03-13 22:06:37 +00:00
|
|
|
{ stdenv, pkgs, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-08-11 04:42:32 +01:00
|
|
|
name = "atomicparsley-${version}";
|
2015-05-14 16:18:17 +01:00
|
|
|
product = "AtomicParsley";
|
2015-03-13 22:06:37 +00:00
|
|
|
version = "0.9.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2015-05-14 16:18:17 +01:00
|
|
|
url = "mirror://sourceforge/atomicparsley/${product}-source-${version}.zip";
|
2015-03-13 22:06:37 +00:00
|
|
|
sha256 = "de83f219f95e6fe59099b277e3ced86f0430ad9468e845783092821dff15a72e";
|
|
|
|
};
|
|
|
|
|
2016-08-11 04:42:51 +01:00
|
|
|
buildInputs = with pkgs; [ unzip ]
|
2016-10-01 21:38:06 +01:00
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ];
|
2015-03-13 22:06:37 +00:00
|
|
|
patches = [ ./casts.patch ];
|
2015-05-16 13:00:19 +01:00
|
|
|
setSourceRoot = "sourceRoot=${product}-source-${version}";
|
2015-03-13 22:06:37 +00:00
|
|
|
buildPhase = "bash build";
|
|
|
|
installPhase = "install -D AtomicParsley $out/bin/AtomicParsley";
|
|
|
|
|
2016-08-11 04:42:51 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace build \
|
|
|
|
--replace 'g++' 'c++'
|
|
|
|
substituteInPlace AP_NSImage.mm \
|
|
|
|
--replace '_NSBitmapImageFileType' 'NSBitmapImageFileType'
|
|
|
|
'';
|
|
|
|
|
2015-03-13 22:06:37 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|