about summary refs log tree commit diff
path: root/tools/eaglemode/plugins/example.nix
blob: b361971cc57eda70972b62dfe0612f79643cd988 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ depot, pkgs, ... }:

let
  em = depot.tools.eaglemode;
  emSrc = with pkgs; srcOnly eaglemode;
in
em.buildPlugin {
  name = "example";
  version = "canon";

  src = pkgs.runCommand "em-plugin-example-src" { } ''
    set -ux
    cp -r ${emSrc}/doc/examples/CppApiExamples/PluginExample $out
  '';

  target = "PlEx";
}