tools/pkgs/d2/default.nix

18 lines
309 B
Nix
Raw Permalink Normal View History

2022-12-13 17:21:48 +03:00
{ lib
, makeWrapper
, symlinkJoin
, d2-unwrapped
, d2plugin-tala
, withTala ? false
}:
symlinkJoin {
name = "d2";
paths = [ d2-unwrapped ] ++ lib.optional withTala [ d2plugin-tala ];
buildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/d2 \
--prefix PATH : "$out/bin"
'';
}