1 { lib, stdenv, fetchFromGitHub, gcc }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "126va59jy7rvy6c2wrf8j44m307f2d8jixqkc49s9wllxprj1dmg";
14 buildInputs = [ gcc ];
17 substituteInPlace runtime/HotReloading.cake \
18 --replace '"/usr/bin/g++"' '"${gcc}/bin/g++"'
19 substituteInPlace src/ModuleManager.cpp \
20 --replace '"/usr/bin/g++"' '"${gcc}/bin/g++"'
21 '' + lib.optionalString stdenv.isDarwin ''
22 substituteInPlace Build.sh --replace '--export-dynamic' '-export_dynamic'
23 substituteInPlace runtime/HotReloading.cake --replace '--export-dynamic' '-export_dynamic'
24 substituteInPlace Bootstrap.cake --replace '--export-dynamic' '-export_dynamic'
32 install -Dm755 bin/cakelisp -t $out/bin
36 description = "A performance-oriented Lisp-like language";
37 homepage = "https://github.com/makuto/cakelisp";
38 license = licenses.gpl3Plus;
39 platforms = platforms.darwin ++ platforms.linux;
40 maintainers = [ maintainers.sbond75 ];