summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/video
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2016-08-12 09:46:53 +0000
committerRobin Gloster <mail@glob.in>2016-08-12 09:46:53 +0000
commitb7787d932ec9cbd82ea6bc7c69d8df159b606fdc (patch)
treec4b6af2e6b49732ce5c6982cb8512ce9b7f1f34d /pkgs/tools/video
parentbc025e83bd6c44df38851ef23da53359a0e62841 (diff)
parent532b2222965377e77ed884c463ee2751fb51dba3 (diff)
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
Diffstat (limited to 'pkgs/tools/video')
-rw-r--r--pkgs/tools/video/atomicparsley/default.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/tools/video/atomicparsley/default.nix b/pkgs/tools/video/atomicparsley/default.nix
index 9cabfe31a188..bb44fe044e81 100644
--- a/pkgs/tools/video/atomicparsley/default.nix
+++ b/pkgs/tools/video/atomicparsley/default.nix
@@ -1,7 +1,7 @@
{ stdenv, pkgs, fetchurl }:
stdenv.mkDerivation rec {
- name = "${product}-${version}";
+ name = "atomicparsley-${version}";
product = "AtomicParsley";
version = "0.9.0";
@@ -10,12 +10,20 @@ stdenv.mkDerivation rec {
sha256 = "de83f219f95e6fe59099b277e3ced86f0430ad9468e845783092821dff15a72e";
};
- buildInputs = with pkgs; [ unzip ];
+ buildInputs = with pkgs; [ unzip ]
+ ++ stdenv.lib.optional stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ];
patches = [ ./casts.patch ];
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