2021-08-05 21:33:18 +00:00
|
|
|
{ llvmPackages
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
llvmPackages.stdenv.mkDerivation rec {
|
|
|
|
pname = "cone";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "unstable-2022-12-12";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jondgoodwin";
|
|
|
|
repo = pname;
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = "698bd6afc75777eabbc8ef576d64d683c6a1c5ab";
|
|
|
|
sha256 = "0y2s9xgkci8n72v6gnc1i7shr2y3g2sa8fbr25gpxa9ipiq9khg7";
|
2021-08-05 21:33:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
llvmPackages.llvm
|
|
|
|
];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
# M68k is an experimental target, so not enabled by default
|
2021-08-05 21:33:18 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i CMakeLists.txt \
|
2024-01-02 11:29:13 +00:00
|
|
|
-e '/M68k/d'
|
2021-08-05 21:33:18 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 conec $out/bin/conec
|
|
|
|
install -Dm644 libconestd.a $out/lib/libconestd.a
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Cone Programming Language";
|
|
|
|
homepage = "https://cone.jondgoodwin.com";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ luc65r ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|