tuicam: init at 0.0.2 (#377825)
[NixPkgs.git] / pkgs / by-name / ho / hop / package.nix
blobcdf9785287e77d347ef0a5737f8ac4ca7e8285bc
2   lib,
3   stdenv,
4   fetchurl,
5   bigloo,
6 }:
8 # Compute the “release” version of bigloo (before the first dash, if any)
9 let
10   bigloo-release =
11     let
12       inherit (lib) head splitString;
13     in
14     head (splitString "-" (builtins.parseDrvName bigloo.name).version);
17 stdenv.mkDerivation rec {
18   pname = "hop";
19   version = "3.4.4";
20   src = fetchurl {
21     url = "ftp://ftp-sop.inria.fr/indes/fp/Hop/hop-${version}.tar.gz";
22     sha256 = "sha256-GzXh4HC+SFFoUi7SMqu36iYRPAJ6tMnOHd+he6n9k1I=";
23   };
25   postPatch = ''
26     substituteInPlace configure --replace "(os-tmp)" '(getenv "TMPDIR")'
27   '';
29   buildInputs = [ bigloo ];
31   configureFlags = [
32     "--bigloo=${bigloo}/bin/bigloo"
33     "--bigloolibdir=${bigloo}/lib/bigloo/${bigloo-release}/"
34   ];
36   meta = with lib; {
37     description = "Multi-tier programming language for the Web 2.0 and the so-called diffuse Web";
38     homepage = "http://hop.inria.fr/";
39     license = licenses.gpl2Plus;
40     platforms = platforms.linux;
41     maintainers = with maintainers; [ vbgl ];
42   };