41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{ stdenv, fetchurl, unzip, darwin }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "atomicparsley-${version}";
|
|
product = "AtomicParsley";
|
|
version = "0.9.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/atomicparsley/${product}-source-${version}.zip";
|
|
sha256 = "de83f219f95e6fe59099b277e3ced86f0430ad9468e845783092821dff15a72e";
|
|
};
|
|
|
|
patches = stdenv.lib.optional (!stdenv.cc.isClang) ./casts.patch;
|
|
|
|
buildInputs = [ unzip ]
|
|
++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Cocoa;
|
|
|
|
setSourceRoot = "sourceRoot=${product}-source-${version}";
|
|
|
|
buildPhase = "bash build";
|
|
installPhase = "install -D AtomicParsley $out/bin/AtomicParsley";
|
|
|
|
postPatch = ''
|
|
substituteInPlace build \
|
|
--replace 'g++' 'c++'
|
|
substituteInPlace AP_NSImage.mm \
|
|
--replace '_NSBitmapImageFileType' 'NSBitmapImageFileType'
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|