2021-01-22 11:25:31 +00:00
|
|
|
{ lib, stdenv, fetchurl, bigloo }:
|
2015-01-01 23:01:40 +00:00
|
|
|
|
2020-09-12 19:31:21 +00:00
|
|
|
# Compute the “release” version of bigloo (before the first dash, if any)
|
|
|
|
let bigloo-release =
|
2021-01-22 11:25:31 +00:00
|
|
|
let inherit (lib) head splitString; in
|
2020-09-12 19:31:21 +00:00
|
|
|
head (splitString "-" (builtins.parseDrvName bigloo.name).version)
|
|
|
|
; in
|
|
|
|
|
2015-01-01 23:01:40 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-09-12 19:31:21 +00: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 19:31:21 +00:00
|
|
|
sha256 = "14gf9ihmw95zdnxsqhn5jymfivpfq5cg9v0y7yjd5i7c787dncp5";
|
2015-01-01 23:01:40 +00:00
|
|
|
};
|
|
|
|
|
2020-09-13 05:55:14 +00: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 19:31:21 +00:00
|
|
|
"--bigloolibdir=${bigloo}/lib/bigloo/${bigloo-release}/"
|
2015-01-01 23:01:40 +00:00
|
|
|
];
|
|
|
|
|
2021-01-22 11:25:31 +00:00
|
|
|
meta = with lib; {
|
2015-01-01 23:01:40 +00:00
|
|
|
description = "A multi-tier programming language for the Web 2.0 and the so-called diffuse Web";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://hop.inria.fr/";
|
2015-01-01 23:01:40 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|