2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl,
|
|
|
|
pkg-config, pure, haskellPackages }:
|
2020-04-24 23:36:52 +00: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-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ hsEnv pure ];
|
|
|
|
makeFlags = [ "libdir=$(out)/lib" "prefix=$(out)/" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Pure interface generator";
|
|
|
|
homepage = "http://puredocs.bitbucket.org/pure-gen.html";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.free;
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
hydraPlatforms = [];
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ asppsa ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|