From 805a2051eb3c68a2eef6eb9d127dcc4e095b9ece Mon Sep 17 00:00:00 2001 From: nixo Date: Fri, 11 Oct 2019 15:11:37 +0200 Subject: [PATCH] gnu: Add julia-assetregistry. * gnu/packages/julia-xyz.scm (julia-assetregistry-0.1.0): New variable. --- gnu/packages/julia-xyz.scm | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm index 78fbab0fa3..5e7bb470ad 100644 --- a/gnu/packages/julia-xyz.scm +++ b/gnu/packages/julia-xyz.scm @@ -1041,3 +1041,46 @@ HTTP(S) for establishing the connections.") (description "Simple utility tool for creating advisory pidfiles (lock files).") (license license:expat))) + +(define-public julia-assetregistry + (package + (name "julia-assetregistry") + (version "0.1.0") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/JuliaGizmos/AssetRegistry.jl") + (commit + (string-append "v" version)))) + (file-name "AssetRegistry") + (sha256 + (base32 "0xpldj08apvblgng6vndb9311gl6xxbk1f9jha8a661p2zfj0r4b")))) + (propagated-inputs + `(("julia-json" ,julia-json) + ("julia-sha" ,julia-sha) + ("julia-pidfile" ,julia-pidfile))) + (build-system julia-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'precompile 'fix-toml + (lambda* + (#:key outputs source #:allow-other-keys) + (julia-create-package-toml + outputs source + "AssetRegistry" + "bf4720bc-e11a-5d0c-854e-bdca1663c893" + "0.1.0" + '(("SHA" . "ea8e919c-243c-51af-8825-aaa63cd721ce") + ("JSON" . "682c06a0-de6a-54ab-a142-c8b1cf79cde6") + ("Pidfile" . "fa939f87-e72e-5be4-a000-7fc836dbe307"))) + #t))))) + (home-page "https://github.com/JuliaGizmos/AssetRegistry.jl") + (synopsis "Serve arbitrary files and folders using a global registry") + (description "AssetRegistry allows you to serve arbitrary files and +folders, using a global registry. Now packages like Mux and IJulia can look up +this registry and serve these files while packages like WebIO and InteractBase +can register assets to be served to implement web-based UIs.") + (license license:expat)))