From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42785) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1isoGj-0001Mi-8B for guix-patches@gnu.org; Sat, 18 Jan 2020 08:36:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1isoGi-0004qj-0c for guix-patches@gnu.org; Sat, 18 Jan 2020 08:36:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34730) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1isoGh-0004qU-T5 for guix-patches@gnu.org; Sat, 18 Jan 2020 08:36:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1isoGh-00078O-Rs for guix-patches@gnu.org; Sat, 18 Jan 2020 08:36:03 -0500 Subject: [bug#38546] [PATCH 09/11] gnu: Add julia-binaryprovider. References: <87v9qpvbyr.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> In-Reply-To: <87v9qpvbyr.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> Resent-Message-ID: From: nixo Date: Sat, 18 Jan 2020 14:07:36 +0100 Message-ID: <87eevwvqec.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 38546@debbugs.gnu.org * gnu/packages/julia-xyz.scm (julia-binaryprovider): New variable. --- gnu/packages/julia-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm index 92ffde58e7..0f8e04b4d1 100644 --- a/gnu/packages/julia-xyz.scm +++ b/gnu/packages/julia-xyz.scm @@ -68,3 +68,36 @@ allows to interface with @file{.ini} files") function takes in either an @code{Array{UInt8}}, a @code{ByteString} or an @code{IO} object.") (license license:expat))) + +(define-public julia-binaryprovider + (package + (name "julia-binaryprovider") + (version "0.5.8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/JuliaPackaging/BinaryProvider.jl") + (commit (string-append "v" version)))) + (file-name "BinaryProvider") + (sha256 + (base32 "174jmg4w8ncgfhdvfnm0p4cnlayw31j4s9sksqlwz1sipywqvww7")))) + (propagated-inputs `(("julia-sha" ,julia-sha))) + ;; We don't really need BinaryProvider (as guix provides the binaries) but + ;; since it's a dependency of other packages we want to precompile it. + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'disable-engine-probe + (lambda _ + (substitute* "src/BinaryProvider.jl" + ;; Precompilation tries to download things from the internet, + ;; disable the download part + (("probe_platform_engines") "# probe_platform_engines")) + #t))))) + (build-system julia-build-system) + (home-page "https://github.com/JuliaPackaging/BinaryProvider.jl") + (synopsis "Reliable Binary provider for Julia") + (description "@code{BinaryProvider.jl} simplifies the installation of +binaries required by julia packages.") + (license license:expat))) -- 2.24.1