lol

Merge pull request #10761 from sjourdois/gptfdisk

gptfdisk: darwin fixes

+13 -1
+13 -1
pkgs/tools/system/gptfdisk/default.nix
··· 11 11 sha256 = "1izazbyv5n2d81qdym77i8mg9m870hiydmq4d0s51npx5vp8lk46"; 12 12 }; 13 13 14 + patchPhase = stdenv.lib.optionalString stdenv.isDarwin '' 15 + substituteInPlace Makefile.mac --replace \ 16 + "-mmacosx-version-min=10.4" "-mmacosx-version-min=10.6" 17 + substituteInPlace Makefile.mac --replace \ 18 + " -arch i386" "" 19 + substituteInPlace Makefile.mac --replace \ 20 + " -I/opt/local/include -I /usr/local/include -I/opt/local/include" "" 21 + substituteInPlace Makefile.mac --replace \ 22 + "/opt/local/lib/libncurses.a" "${ncurses}/lib/libncurses.dylib" 23 + ''; 24 + 25 + buildPhase = stdenv.lib.optionalString stdenv.isDarwin "make -f Makefile.mac"; 14 26 buildInputs = [ libuuid popt icu ncurses ]; 15 27 16 28 installPhase = '' ··· 29 41 license = licenses.gpl2; 30 42 homepage = http://www.rodsbooks.com/gdisk/; 31 43 maintainers = with maintainers; [ nckx ]; 32 - platforms = platforms.linux; 44 + platforms = platforms.all; 33 45 }; 34 46 }