Merge pull request #10761 from sjourdois/gptfdisk
gptfdisk: darwin fixes
This commit is contained in:
commit
f1cc9ac9eb
|
@ -11,6 +11,18 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "1izazbyv5n2d81qdym77i8mg9m870hiydmq4d0s51npx5vp8lk46";
|
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 ];
|
buildInputs = [ libuuid popt icu ncurses ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
@ -29,6 +41,6 @@ stdenv.mkDerivation rec {
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
homepage = http://www.rodsbooks.com/gdisk/;
|
homepage = http://www.rodsbooks.com/gdisk/;
|
||||||
maintainers = with maintainers; [ nckx ];
|
maintainers = with maintainers; [ nckx ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue