@@ -0,0 +1,32 @@
1+{ stdenv, fetchFromGitHub }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "ciao";
5+ version = "1.19.0";
6+ src = fetchFromGitHub {
7+ owner = "ciao-lang";
8+ repo = "ciao";
9+ rev = "v${version}";
10+ sha256 = "03qzcb4ivgkiwdpw7a94dn74xqyxjwz5ilrr53rcblsh5ng299jp";
11+ };
12+
13+ configurePhase = ''
14+ ./ciao-boot.sh configure --instype=global --prefix=$prefix
15+ '';
16+
17+ buildPhase = ''
18+ ./ciao-boot.sh build
19+ '';
20+
21+ installPhase = ''
22+ ./ciao-boot.sh install
23+ '';
24+
25+ meta = with stdenv.lib; {
26+ homepage = "https://ciao-lang.org/";
27+ description = "A general purpose, multi-paradigm programming language in the Prolog family";
28+ license = licenses.lgpl21;
29+ maintainers = with maintainers; [ suhr ];
30+ platforms = platforms.unix;
31+ };
32+}