aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/solidity.scm
blob: 26167ee6596497930e4210a8d9af218064877046 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
;;; Copyright © 2020 Martin Becze <mjbecze@riseup.net>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages solidity)
  #:use-module (gnu packages base)
  #:use-module (gnu packages boost)
  #:use-module (gnu packages maths)
  #:use-module (gnu packages serialization)
  #:use-module (gnu packages python)
  #:use-module (gnu packages ncurses)
  #:use-module (guix packages)
  #:use-module (guix git-download)
  #:use-module (guix build-system cmake)
  #:use-module ((guix licenses) #:prefix license:))

(define-public solidity
  (let ((commit "3f05b770bdbf60eca866382049ea191dd701409a"))
    (package
      (name "solidity")
      (version "0.7.4")
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/ethereum/solidity")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "1mswhjymiwnd3n7h3sjvjx5x8223yih0yvfcr0zpqr4aizpfx5z8"))))
      (build-system cmake-build-system)
      (arguments
       `(#:phases
         (modify-phases %standard-phases
           (add-after 'unpack 'create-commit_hash.txt
             (lambda _
               (with-output-to-file "commit_hash.txt"
                 (lambda _
                   (display
                    (substring ,commit 0 8))))))
           (delete 'configure)
           (delete 'install)
           (replace 'build
             (lambda* (#:key outputs #:allow-other-keys)
               ;; Unbundle jsoncpp
               (delete-file "./cmake/jsoncpp.cmake")
               (substitute* "CMakeLists.txt"
                 (("include\\(jsoncpp\\)") ""))
               ;; Bug list is always sorted since we only build releases
               (substitute* "./test/cmdlineTests.sh"
                 (("\"\\$REPO_ROOT\"/scripts/update_bugs_by_version\\.py") ""))
               (substitute* "./scripts/build.sh"
                 (("sudo\\ make\\ install") "make install")
                 (("cmake\\ ..")
                  (string-append "cmake .. -DCMAKE_INSTALL_PREFIX="
                                 (assoc-ref outputs "out"))))
               (setenv "CIRCLECI" "1")
               (invoke "./scripts/build.sh")
               #t))
           (replace 'check
             (lambda _
               (invoke "./scripts/tests.sh")
               #t)))))
      (inputs
       `(("boost-static" ,boost-static)
         ("jsoncpp" ,jsoncpp)
         ("z3" ,z3)))
      (native-inputs
       `(("python" ,python)
         ("tput" ,ncurses)
         ("xargs" ,findutils)))
      (home-page "https://solidity.readthedocs.io")
      (synopsis "Contract-Oriented Programming Language")
      (description
       "Solidity is a statically-typed curly-braces programming language
designed for developing smart contracts that run on the Ethereum Virtual
Machine.")
      (license license:gpl3+))))
td>gnu: inspircd: Build with mariadb....* gnu/packages/irc.scm (inspircd)[inputs]: Remove mysql. Add mariadb:dev. Efraim Flashner 2023-02-17gnu: Add chathistorysync....* gnu/packages/irc.scm (chathistorysync): New variable. Co-authored-by: ( <paren@disroot.org> Signed-off-by: Christopher Baines <mail@cbaines.net> jgart 2023-02-17gnu: Add go-gopkg-in-irc-v3....* gnu/packages/irc.scm (go-gopkg-in-irc-v3): New variable. Co-authored-by: ( <paren@disroot.org> Signed-off-by: Christopher Baines <mail@cbaines.net> jgart 2023-01-12gnu: kirc: Update to 0.3.2....* gnu/packages/irc.scm (kirc): Update to 0.3.2. Signed-off-by: 宋文武 <iyzsong@member.fsf.org> jgart 2023-01-12gnu: litterbox: Update to 1.9....* gnu/packages/irc.scm (litterbox): Update to 1.9. Signed-off-by: 宋文武 <iyzsong@member.fsf.org> jgart 2023-01-12gnu: catgirl: Update to 2.1....* gnu/packages/irc.scm (catgirl): Update to 2.1. Signed-off-by: 宋文武 <iyzsong@member.fsf.org> jgart 2023-01-12gnu: weechat: Update to 3.8....* gnu/packages/irc.scm (weechat): Update to 3.8. [arguments]: Do not build tests any more: since version 3.8, ‘make test’ is successful when tests are not built. [native-inputs]: Remove dependency on cpputest as tests are not built any more. Signed-off-by: 宋文武 <iyzsong@member.fsf.org> Sébastien Helleu 2022-12-11gnu: ii: Use G-expressions....* gnu/packages/irc.scm (ii)[arguments]: Rewrite as G-expressions. Tobias Geerinckx-Rice 2022-12-11gnu: ii: Update to 2.0....* gnu/packages/irc.scm (ii): Update to 2.0. Tobias Geerinckx-Rice 2022-11-19gnu: irssi: Update to 1.4.3....* gnu/packages/irc.scm (irssi): Update to 1.4.3. Signed-off-by: Christopher Baines <mail@cbaines.net> jgart 2022-11-05gnu: srain: Update to 1.5.0....* gnu/packages/irc.scm (srain): Update to 1.5.0. Vinicius Monego