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