2015-01-01 23:01:40 +00:00
|
|
|
{ stdenv, fetchurl, bigloo }:
|
|
|
|
|
2020-09-12 20:31:21 +01:00
|
|
|
# Compute the “release” version of bigloo (before the first dash, if any)
|
|
|
|
let bigloo-release =
|
|
|
|
let inherit (stdenv.lib) head splitString; in
|
|
|
|
head (splitString "-" (builtins.parseDrvName bigloo.name).version)
|
|
|
|
; in
|
|
|
|
|
2015-01-01 23:01:40 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-09-12 20:31:21 +01:00
|
|
|
name = "hop-3.3.0";
|
2015-01-01 23:01:40 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "ftp://ftp-sop.inria.fr/indes/fp/Hop/${name}.tar.gz";
|
2020-09-12 20:31:21 +01:00
|
|
|
sha256 = "14gf9ihmw95zdnxsqhn5jymfivpfq5cg9v0y7yjd5i7c787dncp5";
|
2015-01-01 23:01:40 +00:00
|
|
|
};
|
|
|
|
|
2020-09-13 06:55:14 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure --replace "(os-tmp)" '(getenv "TMPDIR")'
|
|
|
|
'';
|
|
|
|
|
2015-01-01 23:01:40 +00:00
|
|
|
buildInputs = [ bigloo ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--bigloo=${bigloo}/bin/bigloo"
|
2020-09-12 20:31:21 +01:00
|
|
|
"--bigloolibdir=${bigloo}/lib/bigloo/${bigloo-release}/"
|
2015-01-01 23:01:40 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A multi-tier programming language for the Web 2.0 and the so-called diffuse Web";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://hop.inria.fr/";
|
2015-01-01 23:01:40 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|