[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#66801] [PATCH v5 07/15] gnu: Add elixir-file-system.
From: |
Pierre-Henry Fröhring |
Subject: |
[bug#66801] [PATCH v5 07/15] gnu: Add elixir-file-system. |
Date: |
Sun, 10 Dec 2023 14:04:00 +0100 |
From: Pierre-Henry Fröhring <phfrohring@deeplinks.com>
* gnu/packages/elixir-xyz.scm (elixir-file-system): New variable.
Change-Id: I54e9c9069ddf150bb0c882775b0b2c9d5e59abd6
---
gnu/packages/elixir-xyz.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/elixir-xyz.scm b/gnu/packages/elixir-xyz.scm
index 66c364fb3..948d8aecc 100644
--- a/gnu/packages/elixir-xyz.scm
+++ b/gnu/packages/elixir-xyz.scm
@@ -20,6 +20,8 @@ (define-module (gnu packages elixir-xyz)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages elixir)
#:use-module (gnu packages linux)
+ #:use-module (gnu packages compression)
+ #:use-module (gnu packages base)
#:use-module (gnu packages)
#:use-module (guix build-system gnu)
#:use-module (guix build-system mix)
@@ -91,6 +93,37 @@ (define-public elixir-jason
(home-page "https://hexdocs.pm/jason/")
(license license:asl2.0)))
+(define-public elixir-file-system
+ (package
+ (name "elixir-file-system")
+ (version "0.2.10")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (hexpm-uri name version))
+ (sha256
+ (base32 "1p0myxmnjjds8bbg69dd6fvhk8q3n7lb78zd4qvmjajnzgdmw6a1"))
+ (snippet #~(begin
+ (use-modules (guix build utils) (ice-9 ftw))
+ (mkdir "source")
+ (for-each (lambda (file)
+ (when (not (member file '("." ".." "source")))
+ (rename-file file (string-append "source/"
file))))
+ (scandir "."))
+ (with-directory-excursion "source"
+ (invoke (string-append #+gzip "/bin/gunzip") "-v"
"contents.tar.gz")
+ (invoke (string-append #+tar "/bin/tar") "-xvf"
"contents.tar")
+ (delete-file "contents.tar")
+ (delete-file "priv/inotifywait.exe"))))))
+ (build-system mix-build-system)
+ (propagated-inputs (list inotify-tools))
+ (arguments (list #:tests? #f)) ; no tests
+ (synopsis "File system change watcher")
+ (description "Provides a file system change watcher wrapper based on
+https://github.com/synrc/fs.")
+ (home-page "https://hexdocs.pm/file_system/")
+ (license license:wtfpl2)))
+
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances
;;; of a merge conflict, place them above by existing packages with similar
--
2.41.0
- [bug#66801] [PATCH v5 01/15] build-system: Add mix-build-system., Pierre-Henry Fröhring, 2023/12/10
- [bug#66801] [PATCH v5 07/15] gnu: Add elixir-file-system.,
Pierre-Henry Fröhring <=
- [bug#66801] [PATCH v5 06/15] gnu: Add elixir-jason., Pierre-Henry Fröhring, 2023/12/10
- [bug#66801] [PATCH v5 14/15] gnu: Add elixir-dialyxir., Pierre-Henry Fröhring, 2023/12/10
- [bug#66801] [PATCH v5 02/15] gnu: elixir: Wrap binaries., Pierre-Henry Fröhring, 2023/12/10
- [bug#66801] [PATCH v5 10/15] gnu: Add elixir-castore., Pierre-Henry Fröhring, 2023/12/10
- [bug#66801] [PATCH v5 12/15] gnu: Add elixir-credo., Pierre-Henry Fröhring, 2023/12/10
- [bug#66801] [PATCH v5 04/15] gnu: Add elixir-nimble-parsec., Pierre-Henry Fröhring, 2023/12/10
- [bug#66801] [PATCH v5 08/15] gnu: Add elixir-bunt., Pierre-Henry Fröhring, 2023/12/10
- [bug#66801] [PATCH v5 13/15] gnu: Add elixir-erlex., Pierre-Henry Fröhring, 2023/12/10
- [bug#66801] [PATCH v5 11/15] gnu: Add elixir-excoveralls., Pierre-Henry Fröhring, 2023/12/10
- [bug#66801] [PATCH v5 09/15] gnu: Add elixir-inch-ex., Pierre-Henry Fröhring, 2023/12/10