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