nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 dtools,
4 libclang,
5 buildDubPackage,
6 fetchFromGitHub,
7}:
8
9buildDubPackage (finalAttrs: {
10 pname = "dpp";
11 version = "0.6.0";
12
13 src = fetchFromGitHub {
14 owner = "atilaneves";
15 repo = "dpp";
16 tag = "v${finalAttrs.version}";
17 hash = "sha256-8zcjZ8EV5jdZrRCHkzxu9NeehY2/5AfOSdzreFC9z3c=";
18 };
19
20 nativeBuildInputs = [ dtools ];
21 buildInputs = [ libclang ];
22
23 dubLock = ./dub-lock.json;
24
25 installPhase = ''
26 runHook preInstall
27 install -Dm755 bin/d++ -t $out/d++
28 runHook postInstall
29 '';
30
31 meta = {
32 description = "Directly include C headers in D source code";
33 changelog = "https://github.com/atilaneves/dpp/releases/tag/v${finalAttrs.version}";
34 homepage = "https://github.com/atilaneves/dpp";
35 mainProgram = "d++";
36 maintainers = with lib.maintainers; [ ipsavitsky ];
37 license = lib.licenses.boost;
38 };
39})