Nix package for LDC Syniurge/Calypso fork which allows direct import of C++ code from dlang.
This requires the Nix package manager for reproducable builds.
$ git clone https://github.com/Nekroze/ldc-calypso.nix.git
$ cd ldc-calypso.nix
$ nix-build
$ ./result/bin/ldc2 --help
$ cat default.nix
{ nixpkgs ? import <nixpkgs> {} }:
with nixpkgs;
let
ldc = import ./ldc-calypso.nix {};
in stdenv.mkDerivation rec {
name = "my-project-${version}";
version = "0.0.1";
src = ./.;
buildInputs = [ldc];
buildPhase = ''
ldc2 --help
'';
}