depot/third_party/nixpkgs/pkgs/tools/misc/fondu/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

26 lines
716 B
Nix

{ lib, stdenv, fetchurl, CoreServices }:
stdenv.mkDerivation rec {
version = "060102";
pname = "fondu";
src = fetchurl {
url = "http://fondu.sourceforge.net/fondu_src-${version}.tgz";
sha256 = "152prqad9jszjmm4wwqrq83zk13ypsz09n02nrk1gg0fcxfm7fr2";
};
postConfigure = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace Makefile --replace /System/Library/Frameworks/CoreServices.framework/CoreServices "-framework CoreServices"
'';
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ];
makeFlags = [ "DESTDIR=$(out)" ];
hardeningDisable = [ "fortify" ];
meta = {
platforms = lib.platforms.unix;
license = lib.licenses.gpl3;
};
}