lol
1{ lib, stdenv, fetchurl, CoreServices }:
2
3stdenv.mkDerivation rec {
4 version = "060102";
5 pname = "fondu";
6
7 src = fetchurl {
8 url = "http://fondu.sourceforge.net/fondu_src-${version}.tgz";
9 sha256 = "152prqad9jszjmm4wwqrq83zk13ypsz09n02nrk1gg0fcxfm7fr2";
10 };
11
12 postConfigure = lib.optionalString stdenv.isDarwin ''
13 substituteInPlace Makefile --replace /System/Library/Frameworks/CoreServices.framework/CoreServices "-framework CoreServices"
14 '';
15
16 buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
17
18 makeFlags = [ "DESTDIR=$(out)" ];
19
20 hardeningDisable = [ "fortify" ];
21
22 meta = {
23 platforms = lib.platforms.unix;
24 license = lib.licenses.gpl3;
25 };
26}