2022-10-17 10:26:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, CoreServices }:
|
2016-05-28 18:06:10 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "060102";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "fondu";
|
2016-08-04 07:30:30 +00:00
|
|
|
|
2016-05-28 18:06:10 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://fondu.sourceforge.net/fondu_src-${version}.tgz";
|
|
|
|
sha256 = "152prqad9jszjmm4wwqrq83zk13ypsz09n02nrk1gg0fcxfm7fr2";
|
|
|
|
};
|
2016-08-04 07:30:30 +00:00
|
|
|
|
2022-10-17 10:26:56 +00:00
|
|
|
postConfigure = lib.optionalString stdenv.isDarwin ''
|
|
|
|
substituteInPlace Makefile --replace /System/Library/Frameworks/CoreServices.framework/CoreServices "-framework CoreServices"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "DESTDIR=$(out)" ];
|
2016-08-02 16:06:29 +00:00
|
|
|
|
2016-08-04 07:30:30 +00:00
|
|
|
hardeningDisable = [ "fortify" ];
|
|
|
|
|
2016-08-02 16:06:29 +00:00
|
|
|
meta = {
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
license = lib.licenses.gpl3;
|
2016-08-02 16:06:29 +00:00
|
|
|
};
|
2016-05-28 18:06:10 +00:00
|
|
|
}
|