From: Josh Marshall <joshua.r.marshall.1991@gmail.com>
To: guix-devel <guix-devel@gnu.org>
Subject: How can I fix this package for watchman?
Date: Sun, 3 May 2020 23:10:14 -0400 [thread overview]
Message-ID: <CAFkJGReG2rAuKuVBkuab_Am1nC=C+eUT9YX1yQ4k7agqrUN7yw@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 176 bytes --]
I've been trying to package Facebook's watchman, but I keep running into a
number of problems, none of which have been obvious to fix. Can someone
point out what I'm missing?
[-- Attachment #1.2: Type: text/html, Size: 215 bytes --]
[-- Attachment #2: watchman.patch --]
[-- Type: text/x-patch, Size: 2879 bytes --]
diff --git a/gnu/packages/storage.scm b/gnu/packages/storage.scm
index 376a801fe2..84b482088e 100644
--- a/gnu/packages/storage.scm
+++ b/gnu/packages/storage.scm
@@ -19,16 +19,23 @@
(define-module (gnu packages storage)
#:use-module (guix download)
+ #:use-module (guix git-download)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix utils)
+ #:use-module (guix build utils)
+ #:use-module (guix build gnu-build-system)
#:use-module (guix build-system cmake)
+ #:use-module (guix build-system gnu)
#:use-module (gnu packages)
#:use-module (gnu packages admin)
#:use-module (gnu packages assembly)
#:use-module (gnu packages authentication)
+ #:use-module (gnu packages autotools)
+ #:use-module (gnu packages base)
#:use-module (gnu packages bdw-gc)
#:use-module (gnu packages boost)
+ #:use-module (gnu packages commencement)
#:use-module (gnu packages compression)
#:use-module (gnu packages crypto)
#:use-module (gnu packages cryptsetup)
@@ -247,3 +254,43 @@ storage protocols (S3, NFS, and others) through the RADOS gateway.")
license:cc-by-sa3.0 ;documentation
license:bsd-3 ;isa-l,jerasure,++
license:expat)))) ;civetweb,java bindings
+
+(define-public watchman
+ (package
+ (name "watchman")
+ (version "4.9.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/facebook/watchman.git")
+ (commit "8e0ba724d85de2c89f48161807e878667b9ed089")))
+ (sha256
+ (base32
+ "0fdaj5pmicm6j17d5q7px800m5rmam1a400x3hv1iiifnmhgnkal"))))
+ (build-system gnu-build-system)
+ (arguments
+ (modify-phases %standard-phases
+ (add-after 'build 'add-python-to-path
+ (lambda* (#:key inputs #:allow-other-keys)
+ ( setenv "PATH" (string-append (assoc-ref inputs "python") "/bin"))))))
+ (inputs
+ `(("python" ,python)
+ ("coreutils" ,coreutils)
+ ("glibc" ,glibc)))
+ (native-inputs
+ `(("automake" ,automake)
+ ("autoconf" ,autoconf)
+ ("coreutils" ,coreutils)
+ ("gcc-toolchain" ,gcc-toolchain)
+ ("glibc" ,glibc)
+ ("libtool" ,libtool)
+ ("pkg-config" ,pkg-config)
+ ("openssl" ,openssl)
+ ("python" ,python)))
+ (propagated-inputs
+ `(("python" ,python)))
+ (synopsis "Watches files and records, or triggers actions, when they change")
+ (description "Watchman exists to watch files and record when they actually change.
+It can also trigger actions (such as rebuilding assets) when matching files change.")
+ (license license:asl2.0)
+ (home-page "https://facebook.github.io/watchman/")))
reply other threads:[~2020-05-04 3:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFkJGReG2rAuKuVBkuab_Am1nC=C+eUT9YX1yQ4k7agqrUN7yw@mail.gmail.com' \
--to=joshua.r.marshall.1991@gmail.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).