depot/third_party/nixpkgs/pkgs/development/pure-modules/gen/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

27 lines
845 B
Nix

{ stdenv, fetchurl,
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]);
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ hsEnv pure ];
makeFlags = [ "libdir=$(out)/lib" "prefix=$(out)/" ];
meta = {
description = "Pure interface generator";
homepage = "http://puredocs.bitbucket.org/pure-gen.html";
license = stdenv.lib.licenses.free;
platforms = stdenv.lib.platforms.linux;
hydraPlatforms = [];
maintainers = with stdenv.lib.maintainers; [ asppsa ];
};
}