1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5 go,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "AutomaticComponentToolkit";
10 version = "1.6.0";
11
12 src = fetchFromGitHub {
13 owner = "Autodesk";
14 repo = "AutomaticComponentToolkit";
15 rev = "v${version}";
16 sha256 = "1r0sbw82cf9dbcj3vgnbd4sc1lklzvijic2z5wgkvs21azcm0yzh";
17 };
18
19 nativeBuildInputs = [ go ];
20
21 buildPhase = ''
22 cd Source
23 export HOME=/tmp
24 go build -o act *.go
25 '';
26
27 installPhase = ''
28 install -Dm0755 act $out/bin/act
29 '';
30
31 meta = with lib; {
32 description = "Toolkit to automatically generate software components: abstract API, implementation stubs and language bindings";
33 mainProgram = "act";
34 homepage = "https://github.com/Autodesk/AutomaticComponentToolkit";
35 license = licenses.bsd2;
36 maintainers = with maintainers; [ ];
37 platforms = platforms.all;
38 };
39}