gptfdisk: darwin fixes
This commit is contained in:
parent
a9254356d1
commit
a8c0eab3d0
@ -11,6 +11,18 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1izazbyv5n2d81qdym77i8mg9m870hiydmq4d0s51npx5vp8lk46";
|
||||
};
|
||||
|
||||
patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace Makefile.mac --replace \
|
||||
"-mmacosx-version-min=10.4" "-mmacosx-version-min=10.6"
|
||||
substituteInPlace Makefile.mac --replace \
|
||||
" -arch i386" ""
|
||||
substituteInPlace Makefile.mac --replace \
|
||||
" -I/opt/local/include -I /usr/local/include -I/opt/local/include" ""
|
||||
substituteInPlace Makefile.mac --replace \
|
||||
"/opt/local/lib/libncurses.a" "${ncurses}/lib/libncurses.dylib"
|
||||
'';
|
||||
|
||||
buildPhase = stdenv.lib.optionalString stdenv.isDarwin "make -f Makefile.mac";
|
||||
buildInputs = [ libuuid popt icu ncurses ];
|
||||
|
||||
installPhase = ''
|
||||
@ -29,6 +41,6 @@ stdenv.mkDerivation rec {
|
||||
license = licenses.gpl2;
|
||||
homepage = http://www.rodsbooks.com/gdisk/;
|
||||
maintainers = with maintainers; [ nckx ];
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user