36 src = fetchFromGitHub {
40 hash = "sha256-BNkMtYf5maWtKEZzob+218ke1SIkrP7/nboQ2sZKkxI=";
41 fetchSubmodules = true;
43 kklib = stdenv.mkDerivation {
47 nativeBuildInputs = [ cmake ];
53 mkdir -p ''${!outputDev}/share/koka/v${version}
54 cp -a ../../kklib ''${!outputDev}/share/koka/v${version}
57 inherit (pkgsHostTarget.targetPackages.stdenv) cc;
61 pkgsHostTarget.gnumake
70 libraryToolDepends = [ hpack ];
71 executableHaskellDepends = [
95 executableToolDepends = [
100 mkdir -p $out/share/koka/v${version}
101 cp -a lib $out/share/koka/v${version}
102 ln -s ${kklib.dev}/share/koka/v${version}/kklib $out/share/koka/v${version}
103 wrapProgram "$out/bin/koka" \
104 --set CC "${lib.getBin cc}/bin/${cc.targetPrefix}cc" \
105 --prefix PATH : "${lib.makeSearchPath "bin" runtimeDeps}"
109 description = "Koka language compiler and interpreter";
110 homepage = "https://github.com/koka-lang/koka";
111 changelog = "${homepage}/blob/master/doc/spec/news.mdk";
112 license = lib.licenses.asl20;
113 maintainers = with lib.maintainers; [