aboutsummaryrefslogtreecommitdiff
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2020 Martin Becze <mjbecze@riseup.net>
;;; Copyright © 2022 Zhu Zihao  <all_but_last@163.com>
;;; Copyright © 2024 Efraim Flashner <efraim@flashner.co.il>
;;;
;;; 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 cpp)
  #:use-module (gnu packages maths)
  #:use-module (gnu packages serialization)
  #:use-module (gnu packages python)
  #:use-module (gnu packages ncurses)
  #:use-module (gnu packages pretty-print)
  #:use-module (guix packages)
  #:use-module (guix gexp)
  #:use-module (guix download)
  #:use-module (guix build-system cmake)
  #:use-module ((guix licenses) #:prefix license:))

(define-public solidity
  (package
    (name "solidity")
    (version "0.8.25")
    (source
     (origin
       (method url-fetch)
       (uri
        (string-append "https://github.com/ethereum/solidity/releases/download/v"
                       version "/solidity_" version ".tar.gz"))
       (sha256
        (base32 "0gr7mcrng7lkqx968n48js77kwz7fk8230yj0bhp1vw5hdglpxfy"))))
    (build-system cmake-build-system)
    (arguments
     (list
      #:configure-flags
      #~(list "-DSTRICT_Z3_VERSION=OFF")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'unbundle-3rd-party-dependencies
            (lambda _
              (substitute* "CMakeLists.txt"
                (("include\\(fmtlib\\)")
                 "find_package(fmt)")
                (("include\\(range-v3\\)")
                 "find_package(range-v3)")
                (("include\\(jsoncpp\\)")
                 "find_package(jsoncpp)"))))
          (add-after 'unpack 'allow-newer-version-of-jsoncpp
            (lambda _
              (substitute* "libsolutil/JSON.cpp"
                (("JSONCPP_VERSION_PATCH ==") "JSONCPP_VERSION_PATCH >=")))))))
    (inputs
     (list boost-static fmt jsoncpp range-v3 z3))
    (native-inputs
     (list python ncurses 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+)))
2724dacec4399c33d Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn> Artyom V. Poptsov 2024-07-23gnu: mednafen: Improve package style....* gnu/packages/emulators.scm (mednafen)[arguments]: Use G-expressions. [inputs]: Remove input labels. Change-Id: I8ec291faae92a19da880a65fab39d9a01b7ddda7 Nicolas Goaziou 2024-07-23gnu: mednafen: Update to 1.32.1....* gnu/packages/emulators.scm (mednafen): Update to 1.32.1. Change-Id: I62d75f0158fe958ea9d1e7750be6ef715c18fae0 Nicolas Goaziou 2024-07-13gnu: Add python-archinfo....* gnu/packages/emulators.scm (python-archinfo): New variable. Signed-off-by: jgart <jgart@dismail.de> Sören Tempel 2024-07-13gnu: Add python-keystone-engine....* gnu/packages/emulators.scm (python-keystone-engine): New variable. Signed-off-by: jgart <jgart@dismail.de> Sören Tempel 2024-07-11gnu: unicorn: Update to 2.0.1.post1....* gnu/packages/emulators.scm (unicorn) Update to 2.0.1.post1. Co-authored-by: Sören Tempel <soeren@soeren-tempel.net> Signed-off-by: jgart <jgart@dismail.de> c4droid 2024-06-24gnu: sameboy: Update to 0.16.3....* gnu/packages/emulators.scm (sameboy): Update to 0.16.3. Change-Id: I56a1bd092e1ce00733d8fea8ab372b2bd52c8b7b Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Felix Gruber 2024-05-06gnu: retroarch: Fix OpenGL core and Vulkan drivers....* gnu/packages/emulators.scm (retroarch)[arguments]: Ignore check result for HAVE_GLSLANG_HLSL in the configure phase. Change-Id: I3ba110b834acca25ada0e680a6bcb879b4db96f4 Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr> 宋文武 2024-05-05gnu: Add mupen64plus-video-gliden64....* gnu/packages/emulators.scm (mupen64plus-video-gliden64): New variable. Change-Id: I09782d0c793062c3fa448b5376a97a5f3356ea5c Maxim Cournoyer 2024-05-05gnu: mupen64plus-ui-console: Modernize....* gnu/packages/emulators.scm (mupen64plus-ui-console) [propagated-inputs]: Remove legacy mupen64plus-video-glide64 plugin. [arguments]: Use gexps. Change-Id: I33ce0ef1e7ea87b382f74aae07098bcf0e5f30e0 Maxim Cournoyer 2024-05-05gnu: mupen64plus-video-rice: Adjust synopsis....* gnu/packages/emulators.scm (mupen64plus-video-rice): Adjust synopsis. Change-Id: I3708c46593a096f632d9268200c312a434525331 Maxim Cournoyer 2024-05-05gnu: mupen64plus-video-glide64mk2: Fix synopsis....* gnu/packages/emulators.scm (mupen64plus-video-glide64mk2): Fix synopsis. Change-Id: I6f41e9a4b70faa0e2342a4ffc2803873a8dc8f08 Maxim Cournoyer 2024-05-05gnu: mupen64plus-video-glide64: Fix synopsis....* gnu/packages/emulators.scm (mupen64plus-video-glide64): Fix synopsis. Change-Id: I0b2b4630dcf3c5dc5ee385e82c71f92694cf2abe Maxim Cournoyer 2024-05-05gnu: mupen64plus-video-arachnoid: Fix synopsis....* gnu/packages/emulators.scm (mupen64plus-video-arachnoid): Fix synopsis. Change-Id: Ic560e6780965526723907aff9d2af6c48f580508 Maxim Cournoyer 2024-05-05gnu: mupen64plus-rsp-z64: Fix synopsis....* gnu/packages/emulators.scm (mupen64plus-rsp-z64): Fix synopsis. Change-Id: I97d5b8e70949f2a5198ce45b0a1fe24a089078ba Maxim Cournoyer 2024-05-05gnu: mupen64plus-rsp-hle: Fix synopsis....* gnu/packages/emulators.scm (mupen64plus-rsp-hle): Fix synopsis. Change-Id: I7235da472ecd1856fdc33ed08d92f9f05b29ba3a Maxim Cournoyer 2024-05-05gnu: mupen64plus-audio-sdl: Fix synopsis....* gnu/packages/emulators.scm (mupen64plus-audio-sdl): Fix synopsis. Change-Id: I08b2778cf625699d72d5fbab2b23d86ff06a1be0 Maxim Cournoyer 2024-05-05gnu: zsnes: Relocate to (gnu packages emulator)....* gnu/packages/games.scm (zsnes): Move to... * gnu/packages/emulators.scm (zsnes): ... here. Change-Id: I739e0f3b221790b6f780362d884209fff0aed3d7 Maxim Cournoyer 2024-05-05gnu: mupen64plus-ui-console: Update to 2.5.9....* gnu/packages/emulators.scm (mupen64plus-ui-console): Update to 2.5.9. Change-Id: I9794dc81e0417c9879820400dbdb002faec35cdc Maxim Cournoyer 2024-05-05gnu: mupen64plus-video-z64: Update to 2.5.9....* gnu/packages/emulators.scm (mupen64plus-video-z64): Update to 2.5.9. [source]: Delete patches. * gnu/packages/patches/mupen64plus-video-z64-glew-correct-path.patch: Delete file. * gnu/local.mk (dist_patch_DATA): De-register it. Change-Id: Ic8022c3a88f88f48644cc694e0a18c0b0a6745a1 Maxim Cournoyer 2024-05-05gnu: mupen64plus-video-rice: Update to 2.5.9....* gnu/packages/emulators.scm (mupen64plus-video-rice): Update to 2.5.9. Change-Id: Ie2d26d6c62a09c0077e4c28869bf33b2c275d01f Maxim Cournoyer 2024-05-05gnu: mupen64plus-video-glide64mk2: Update to 2.5.9....* gnu/packages/emulators.scm (mupen64plus-video-glide64mk2): Update to 2.5.9. Change-Id: I77afdd1c954411203e75248d0d4bf4709db375bb Maxim Cournoyer 2024-05-05gnu: mupen64plus-video-arachnoid: Update to 2.5.9....* gnu/packages/emulators.scm (mupen64plus-video-arachnoid): Update to 2.5.9. Change-Id: I2751cca9a553029fbceba59762e498931a1f9946 Maxim Cournoyer 2024-05-05gnu: mupen64plus-rsp-z64: Update to 2.5.9....* gnu/packages/emulators.scm (mupen64plus-rsp-z64): Update to 2.5.9. Change-Id: Ibf9b67d37506f742c50397ff269586df1636af4d Maxim Cournoyer 2024-05-05gnu: mupen64plus-rsp-hle: Update to 2.5.9....* gnu/packages/emulators.scm (mupen64plus-rsp-hle): Update to 2.5.9. Change-Id: I68c1f92fd2be820ba437696d61d064a97ed4581e Maxim Cournoyer 2024-05-05gnu: mupen64plus-input-sdl: Update to 2.5.9....* gnu/packages/emulators.scm (mupen64plus-input-sdl): Update to 2.5.9. Change-Id: Idec4c3633767d151101beeba3ef2317e54d3f6f4 Maxim Cournoyer 2024-05-05gnu: mupen64plus-audio-sdl: Update to 2.5.9....* gnu/packages/emulators.scm (mupen64plus-audio-sdl): Update to 2.5.9. Change-Id: If888cf62ee2247438d47cd385d7812ad22fb8068 Maxim Cournoyer 2024-05-05gnu: mupen64plus-core: Update to 2.5.9....* gnu/packages/emulators.scm (mupen64plus-core): Update to 2.5.9. [native-inputs]: Add nasm. Change-Id: I9960b697124c130e75f765d55e1ce8a56dda168b Maxim Cournoyer 2024-05-05gnu: mupen64plus-video-glide64: Update to 2.5.9....* gnu/packages/emulators.scm (mupen64plus-video-glide64): Update to 2.5.9. [phases]: Delete use-sdl2 phase. Change-Id: Ic7359fb764f40fa25c553ab15e39f47963d3301b Maxim Cournoyer 2024-03-25gnu: retroarch: Update to 1.18.0....* gnu/packages/emulators.scm (retroarch): Update to 1.18.0. Change-Id: I324df0145b908fd0fb901bdb4482621a2ba48153 Signed-off-by: Christopher Baines <mail@cbaines.net> 宋文武 2024-03-19gnu: dosbox-staging: Update to 0.81.0....* gnu/packages/emulators.scm (dosbox-staging): Update to 0.81.0. Change-Id: I949cb68aa4bb44973a9cc641855ae6c4f5b5b0cd 宋文武 2024-03-17gnu: mgba: Update to 0.10.3....* gnu/packages/emulators.scm (mgba): Update to 0.10.3. <#:configure-flags>: Turn off "BUILD_LTO" to fix a build issue. Change-Id: I21a3dfd0f1a493cd7bf629ab7facc6fbe9547213 Nicolas Goaziou 2024-03-17gnu: scummvm: Update to 2.8.1....* gnu/packages/emulators.scm (scummvm): Update to 2.8.1. Change-Id: I033c211ff6a4d049147261209240aebe6373e174 Nicolas Goaziou 2024-02-13gnu: retroarch: Update to 1.17.0....* gnu/packages/emulators.scm (retroarch): Update to 1.17.0. Change-Id: I8e6d1df67061bb80274649bda5964d9f4303b9dc Signed-off-by: Christopher Baines <mail@cbaines.net> 宋文武 2024-02-10gnu: emulators: Adjust copyright header....This is follow up commit 9ffdcb249278d9bb95ffb6c6e9f94b675bb1068c. * gnu/packages/emulators.scm: Update copyright for "Felix Gruber <felgru@posteo.net>". * gnu/packages/simulation.scm: Remove "Copyright © 2024 Felix Gruber <felgru@posteo.net>". Change-Id: I3f39abb0fbe05e7c6af9715fb6cc41c20b6f0a45 Sharlatan Hellseher 2024-02-10gnu: sameboy: Update to 0.16.2....* gnu/packages/emulators.scm (sameboy): Update to 0.16.2. Change-Id: I86a31cfca9e69d63d3cb6a13d5db88a6b1abe2a8 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Felix Gruber 2024-02-05gnu: mbedtls-apache: Rename to mbedtls-lts....* gnu/packages/tls.scm (mbedtls-apache): Rename package to "mbedtls". Rename variable to… (mbedtls-lts): …this. (mbedtls-apache): Define as deprecated by mbedtls-lts. (mbedtls-for-hiawatha): Adjust accordingly. * doc/guix.texi: Likewise. * gnu/packages/emulators.scm (dolphin-emu,retroarch)[inputs]: Likewise. * gnu/packages/game-development.scm (godot-lts,godot)[inputs]: Likewise. * gnu/packages/hardware.scm (hueplusplus,openrgb)[inputs]: Likewise. * gnu/packages/haxe.scm (neko,haxe,hashlink)[inputs]: Likewise. * gnu/packages/irc.scm (inspircd)[inputs]: Likewise. * gnu/packages/julia-jll.scm (julia-mbedtls-jll)[arguments]<#:phases>,[inputs]: Likewise. * gnu/packages/julia.scm (julia)[arguments]<#:phases>,[inputs]: Likewise. * gnu/packages/linphone.scm (bctoolbox)[inputs]: Likewise. * gnu/packages/linux.scm (dislocker)[inputs]: Likewise. * gnu/packages/networking.scm (nng)[inputs]: Likewise. * gnu/packages/search.scm (dataparksearch)[inputs]: Likewise. * gnu/packages/video.scm (obs)[inputs]: Likewise. * gnu/packages/web.scm (hiawatha)[arguments]<#:phases>: Likewise. Change-Id: I0c58b3cd0bcf6e44e7b16a69f6d2739aa3c1545b Hilton Chain 2023-11-19gnu: exomizer: Update to 3.1.2....* gnu/packages/emulators.scm (exomizer): Update to 3.1.2. [source]: Use a Git tag rather than commit. Change-Id: I2dd5ad0b5a4be4633c1b57ff1367941d3f1aa49b Tobias Geerinckx-Rice 2023-11-25gnu: Add qtrvsim....* gnu/packages/emulators.scm (qtrvsim): New variable. Change-Id: I8e51184534fa9990c318008513e1e6566a04b10a Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Zheng Junjie 2023-10-29gnu: retroarch: Remove input labels....* gnu/packages/emulators.scm (retroarch)[inputs]: Remove labels. Change-Id: Ia536f4b529260dc8c0f91618e0fd1e207984942f 宋文武 2023-10-29gnu: retroarch: Use latest ffmpeg....* gnu/packages/emulators.scm (retroarch)[inputs]: Replace ffmpeg-4 with ffmpeg. Change-Id: I8b2772e139fd884caa6b411afdcf1ccb849dbc28 宋文武 2023-10-29gnu: retroarch: Use more system libraries....* gnu/packages/emulators.scm (retroarch)[inputs]: Add flac, glslang, mbedtls-apache, openssl, spirv-headers and spirv-tools. [arguments]: Add configure flags to disable bundled libraries. Change-Id: I2a833da5e5b28469e4677b3c24608e71949308a7 宋文武 2023-10-29gnu: retroarch: Update to 1.16.0.3....* gnu/packages/emulators.scm (retroarch): Update to 1.16.0.3. Change-Id: Ied17b92bb416bd7e237ef883793015c96b01d2f8 宋文武 2023-10-01gnu: desmume: Update to 0.9.13....* gnu/packages/emulators.scm (desmume): Update to 0.9.13. [source]: Switch to git-fetch. Remove patches. [build-system]: Switch to meson-build-system. [arguments]<#:configure-flags>: Replace “--enable-openal” with “-Dopenal=true”. Remove “--enable-wifi”. Add “-Dfrontend-cli=true”, “-Dfrontend-gtk=true”, and “-Dgdb-stub=true”. <#:phases>: Add ‘chdir’. [native-inputs]: Add glib:bin and gettext-minimal. [inputs]: Replace sdl with sdl2 and gtk+-2 with gtk+. Remove glu. Add agg, alsa-lib, libpcap, openal, and soundtouch. [home-page]: Use HTTPS. * gnu/packages/patches/desmume-gcc6-fixes.patch: Removed file. * gnu/packages/patches/desmume-gcc7-fixes.patch: Likewise. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Hendursaga