tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
atomicparsley: fix darwin build
Matthew Bauer
9 years ago
0a1cb799
93d0d6f2
+9
-1
1 changed file
expand all
collapse all
unified
split
pkgs
tools
video
atomicparsley
default.nix
+9
-1
pkgs/tools/video/atomicparsley/default.nix
···
10
10
sha256 = "de83f219f95e6fe59099b277e3ced86f0430ad9468e845783092821dff15a72e";
11
11
};
12
12
13
13
-
buildInputs = with pkgs; [ unzip ];
13
13
+
buildInputs = with pkgs; [ unzip ]
14
14
+
++ stdenv.lib.optional stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ];
14
15
patches = [ ./casts.patch ];
15
16
setSourceRoot = "sourceRoot=${product}-source-${version}";
16
17
buildPhase = "bash build";
17
18
installPhase = "install -D AtomicParsley $out/bin/AtomicParsley";
19
19
+
20
20
+
postPatch = ''
21
21
+
substituteInPlace build \
22
22
+
--replace 'g++' 'c++'
23
23
+
substituteInPlace AP_NSImage.mm \
24
24
+
--replace '_NSBitmapImageFileType' 'NSBitmapImageFileType'
25
25
+
'';
18
26
19
27
meta = with stdenv.lib; {
20
28
description = ''