2018-07-21 00:44:44 +00:00
|
|
|
{ stdenv, fetchurl,
|
2015-05-26 06:58:18 +00:00
|
|
|
pkgconfig, pure, haskellPackages }:
|
|
|
|
|
|
|
|
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]);
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ hsEnv pure ];
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "libdir=$(out)/lib" "prefix=$(out)/" ];
|
2015-05-26 06:58:18 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Pure interface generator";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://puredocs.bitbucket.org/pure-gen.html";
|
2015-05-26 06:58:18 +00:00
|
|
|
license = stdenv.lib.licenses.free;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2017-09-26 01:58:36 +00:00
|
|
|
hydraPlatforms = [];
|
2015-05-26 06:58:18 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ asppsa ];
|
|
|
|
};
|
|
|
|
}
|