2021-01-23 18:15:07 +01:00
|
|
|
{ lib, stdenv, fetchurl,
|
2021-01-19 07:50:56 +01:00
|
|
|
pkg-config, pure, haskellPackages }:
|
2015-05-26 08:58:18 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
baseName = "gen";
|
|
|
|
version = "0.20";
|
|
|
|
name = "pure-${baseName}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://bitbucket.org/purelang/pure-lang/downloads/${name}.tar.gz";
|
|
|
|
sha256 = "cfadd99a378b296325937d2492347611cc1e1d9f24594f91f3c2293eca01a4a8";
|
|
|
|
};
|
|
|
|
|
|
|
|
hsEnv = haskellPackages.ghcWithPackages (hsPkgs : [hsPkgs.language-c]);
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 23:26:13 +02:00
|
|
|
buildInputs = [ hsEnv pure ];
|
2019-10-27 14:03:25 +01:00
|
|
|
makeFlags = [ "libdir=$(out)/lib" "prefix=$(out)/" ];
|
2015-05-26 08:58:18 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Pure interface generator";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://puredocs.bitbucket.org/pure-gen.html";
|
2021-01-23 18:15:07 +01:00
|
|
|
license = lib.licenses.free;
|
|
|
|
platforms = lib.platforms.linux;
|
2017-09-26 03:58:36 +02:00
|
|
|
hydraPlatforms = [];
|
2021-01-23 18:15:07 +01:00
|
|
|
maintainers = with lib.maintainers; [ asppsa ];
|
2015-05-26 08:58:18 +02:00
|
|
|
};
|
|
|
|
}
|