3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/video/atomicparsley/default.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

2015-03-13 22:06:37 +00:00
{ stdenv, pkgs, fetchurl }:
stdenv.mkDerivation rec {
name = "atomicparsley-${version}";
product = "AtomicParsley";
2015-03-13 22:06:37 +00:00
version = "0.9.0";
src = fetchurl {
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 ]
++ 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 ];
};
}