[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#65131] [PATCH 26/32] gnu: Add vagrant-reload.
From: |
Hartmut Goebel |
Subject: |
[bug#65131] [PATCH 26/32] gnu: Add vagrant-reload. |
Date: |
Mon, 7 Aug 2023 20:26:30 +0200 |
* gnu/packages/virtualization.scm (vagrant-reload): New variable.
---
gnu/packages/virtualization.scm | 52 +++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm
index c3d5bef58b..0742db7cc2 100644
--- a/gnu/packages/virtualization.scm
+++ b/gnu/packages/virtualization.scm
@@ -2375,6 +2375,58 @@ managers and Linux distros.")
(home-page "https://github.com/fgrehm/vagrant-cachier")
(license license:expat)))
+(define-public vagrant-reload
+ (package
+ (name "vagrant-reload")
+ (version "0.0.1")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "vagrant-reload" version))
+ (sha256
+ (base32
+ "0smy0px20xgakcyki5hdbk3n63k9c6ychh5pvbannn1p4zjxa0xa"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:tests? #f ; has no tests, testing as described in the Readme requires
+ ; running vagrant, a provider and downloading a box
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-gemfile
+ (lambda _
+ (substitute* "Gemfile"
+ ((", :git.*") "\n"))))
+ (add-after 'install 'install-plugin.json
+ (lambda _
+ (let* ((plugins.d (string-append
+ #$output "/share/vagrant-plugins/plugins.d"))
+ (plugin.json (string-append
+ plugins.d "/" #$name ".json")))
+ (mkdir-p plugins.d)
+ #$(with-extensions (list guile-json-4)
+ #~(begin
+ (use-modules (json))
+ (call-with-output-file plugin.json
+ (lambda (port)
+ (scm->json
+ '((#$name
+ .
+ (("ruby_version"
+ . #$(package-version (this-package-input
"ruby")))
+ ("vagrant_version"
+ . #$(package-version (this-package-input
"vagrant")))
+ ("gem_version" . "")
+ ("require" . "")
+ ("installed_gem_version" . #$version)
+ ("sources" . #()))))
+ port)))))))))))
+ (inputs (list ruby vagrant))
+ (synopsis "Reload a Vagrant VM as a provisioning step")
+ (description "This Vagrant plugin enables reloading a Vagrant VM as a
+provisioning step.")
+ (home-page "http://www.vagrantup.com")
+ (license license:expat)))
+
(define-public vagrant-vai
(package
(name "vagrant-vai")
--
2.30.9
- [bug#65131] [PATCH 13/32] gnu: Add ruby-serverspec., (continued)
- [bug#65131] [PATCH 13/32] gnu: Add ruby-serverspec., Hartmut Goebel, 2023/08/07
- [bug#65131] [PATCH 15/32] gnu: Add ruby-google-protobuf., Hartmut Goebel, 2023/08/07
- [bug#65131] [PATCH 19/32] gnu: Add ruby-vagrant-spec., Hartmut Goebel, 2023/08/07
- [bug#65131] [PATCH 21/32] gnu: Add ruby-hashicorp-checkpoint., Hartmut Goebel, 2023/08/07
- [bug#65131] [PATCH 14/32] gnu: Add ruby-time., Hartmut Goebel, 2023/08/07
- [bug#65131] [PATCH 17/32] gnu: Add ruby-grpc., Hartmut Goebel, 2023/08/07
- [bug#65131] [PATCH 20/32] gnu: Add ruby-vagrant-spec-helper-basic., Hartmut Goebel, 2023/08/07
- [bug#65131] [PATCH 22/32] gnu: ruby-childprocess: Update to 4.1.0., Hartmut Goebel, 2023/08/07
- [bug#65131] [PATCH 23/32] gnu: Add vagrant., Hartmut Goebel, 2023/08/07
- [bug#65131] [PATCH 25/32] gnu: Add vagrant-cachier., Hartmut Goebel, 2023/08/07
- [bug#65131] [PATCH 26/32] gnu: Add vagrant-reload.,
Hartmut Goebel <=
- [bug#65131] [PATCH 28/32] gnu: Add ruby-fog-core., Hartmut Goebel, 2023/08/07
- [bug#65131] [PATCH 30/32] gnu: Add ruby-fog-xml., Hartmut Goebel, 2023/08/07
- [bug#65131] [PATCH 32/32] gnu: Add vagrant-libvirt., Hartmut Goebel, 2023/08/07
- [bug#65131] [PATCH 24/32] gnu: Add vagrant-vai., Hartmut Goebel, 2023/08/07
- [bug#65131] [PATCH 27/32] gnu: Add ruby-libvirt., Hartmut Goebel, 2023/08/07
- [bug#65131] [PATCH 29/32] gnu: Add ruby-fog-json., Hartmut Goebel, 2023/08/07
- [bug#65131] [PATCH 31/32] gnu: Add ruby-fog-libvirt., Hartmut Goebel, 2023/08/07