mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
atomicparsley: fix darwin build
This commit is contained in:
parent
93d0d6f25f
commit
0a1cb79908
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user