p910nd: fix darwin build

This commit is contained in:
Ben Siraphob 2021-03-10 18:48:59 +07:00
parent 88ff5e40ea
commit 1a3b74cf75

View file

@ -10,7 +10,8 @@ stdenv.mkDerivation rec {
};
postPatch = ''
sed -e "s|/usr||g" -i Makefile
substituteInPlace Makefile --replace "/usr" ""
substituteInPlace Makefile --replace "gcc" "${stdenv.cc.targetPrefix}cc"
'';
makeFlags = [ "DESTDIR=$(out)" "BINDIR=/bin" ];
@ -39,6 +40,6 @@ stdenv.mkDerivation rec {
homepage = "http://p910nd.sourceforge.net/";
downloadPage = "https://sourceforge.net/projects/p910nd/";
license = licenses.gpl2;
platforms = platforms.linux;
platforms = platforms.unix;
};
}