mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-29 16:24:10 +00:00
koka: 2.1.9 -> 2.3.1
This commit is contained in:
parent
5086684ead
commit
6fd63365fc
@ -1,15 +1,15 @@
|
|||||||
{ stdenv, pkgsHostTarget, cmake, makeWrapper, mkDerivation, fetchFromGitHub
|
{ stdenv, pkgsHostTarget, cmake, makeWrapper, mkDerivation, fetchFromGitHub
|
||||||
, alex, array, base, bytestring, cond, containers, directory, extra
|
, alex, array, base, bytestring, cond, containers, directory, extra
|
||||||
, filepath, haskeline, hpack, hspec, hspec-core, json, lib, mtl
|
, filepath, hpack, hspec, hspec-core, isocline, json, lib, mtl
|
||||||
, parsec, process, regex-compat, text, time }:
|
, parsec, process, regex-compat, text, time }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "2.1.9";
|
version = "2.3.1";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "koka-lang";
|
owner = "koka-lang";
|
||||||
repo = "koka";
|
repo = "koka";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0xny4x1a2lzwgmng60bni7rxfjx5ns70qbfp703qwms54clvj5wy";
|
sha256 = "18f4hsqgc6c0cnayabj311n438fjhf217j1kjaysa8w4k4pxl58z";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
kklib = stdenv.mkDerivation {
|
kklib = stdenv.mkDerivation {
|
||||||
@ -33,14 +33,13 @@ mkDerivation rec {
|
|||||||
isExecutable = true;
|
isExecutable = true;
|
||||||
libraryToolDepends = [ hpack ];
|
libraryToolDepends = [ hpack ];
|
||||||
executableHaskellDepends = [
|
executableHaskellDepends = [
|
||||||
array base bytestring cond containers directory haskeline mtl
|
array base bytestring cond containers directory isocline mtl
|
||||||
parsec process text time kklib
|
parsec process text time kklib
|
||||||
];
|
];
|
||||||
executableToolDepends = [ alex makeWrapper ];
|
executableToolDepends = [ alex makeWrapper ];
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/share/koka/v${version}
|
mkdir -p $out/share/koka/v${version}
|
||||||
cp -a lib $out/share/koka/v${version}
|
cp -a lib $out/share/koka/v${version}
|
||||||
cp -a contrib $out/share/koka/v${version}
|
|
||||||
cp -a kklib $out/share/koka/v${version}
|
cp -a kklib $out/share/koka/v${version}
|
||||||
wrapProgram "$out/bin/koka" \
|
wrapProgram "$out/bin/koka" \
|
||||||
--set CC "${lib.getBin cc}/bin/${cc.targetPrefix}cc" \
|
--set CC "${lib.getBin cc}/bin/${cc.targetPrefix}cc" \
|
||||||
@ -50,6 +49,7 @@ mkDerivation rec {
|
|||||||
prePatch = "hpack";
|
prePatch = "hpack";
|
||||||
description = "Koka language compiler and interpreter";
|
description = "Koka language compiler and interpreter";
|
||||||
homepage = "https://github.com/koka-lang/koka";
|
homepage = "https://github.com/koka-lang/koka";
|
||||||
|
changelog = "${homepage}/blob/master/doc/spec/news.mdk";
|
||||||
license = lib.licenses.asl20;
|
license = lib.licenses.asl20;
|
||||||
maintainers = with lib.maintainers; [ siraben sternenseemann ];
|
maintainers = with lib.maintainers; [ siraben sternenseemann ];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user