From df33c8de73bcfd034bd64f53ee1887a940a23bff Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Mon, 9 Jan 2023 10:40:36 +0100 Subject: gnu: Add automatic-component-toolkit. * gnu/packages/code.scm (automatic-component-toolkit): New variable. --- gnu/packages/code.scm | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) (limited to 'gnu') diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm index 4917c85a67..eba3b8bb73 100644 --- a/gnu/packages/code.scm +++ b/gnu/packages/code.scm @@ -12,7 +12,7 @@ ;;; Copyright © 2014 Mark H Weaver ;;; Copyright © 2019 Hartmut Goebel ;;; Copyright © 2020, 2022 Maxim Cournoyer -;;; Copyright © 2020, 2021 Marius Bakke +;;; Copyright © 2020, 2021, 2023 Marius Bakke ;;; Copyright © 2020 Julien Lepiller ;;; Copyright © 2021 lu hui ;;; Copyright © 2021, 2022 Foo Chuan Wei @@ -58,6 +58,7 @@ #:use-module (gnu packages emacs) #:use-module (gnu packages flex) #:use-module (gnu packages gcc) + #:use-module (gnu packages golang) #:use-module (gnu packages graphviz) #:use-module (gnu packages llvm) #:use-module (gnu packages linux) @@ -80,6 +81,44 @@ ;;; Tools to deal with source code: metrics, cross-references, etc. +(define-public automatic-component-toolkit + (package + (name "automatic-component-toolkit") + (version "1.6.0") + (home-page "https://github.com/Autodesk/AutomaticComponentToolkit") + (source (origin + (method git-fetch) + (uri (git-reference (url home-page) + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1r0sbw82cf9dbcj3vgnbd4sc1lklzvijic2z5wgkvs21azcm0yzh")))) + (build-system gnu-build-system) + (arguments + (list #:tests? #false ;no tests + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda _ + (setenv "HOME" "/tmp") + (invoke "bash" "Build/build.sh"))) + (replace 'install + (lambda _ + (let ((bin (string-append #$output "/bin"))) + (mkdir-p bin) + (copy-file "act.linux" + (string-append #$output "/bin/act")))))))) + (native-inputs (list go)) + (synopsis "Automatically generate software components") + (description + "The Automatic Component Toolkit (@dfn{ACT}) is a code generator that +takes an instance of an Interface Description Language (@dfn{IDL}) file and +generates a thin C89-API, implementation stubs, and language bindings of your +desired software component.") + (license license:bsd-2))) + (define-public cflow (package (name "cflow") -- cgit 1.4.1