~ruther/guix-local

821ca97904419e47b11e483e91c28cc9f34fbeae — Sharlatan Hellseher 10 months ago 5550a8c
gnu: Add go-gopkg-in-fsnotify-v1.

* gnu/packages/golang-xyz.scm (go-gopkg-in-fsnotify-v1): New variable.

Change-Id: I3b50ac55213df1a5024f6a4d7bd50f849eeb3c4b
1 files changed, 15 insertions(+), 0 deletions(-)

M gnu/packages/golang-xyz.scm
M gnu/packages/golang-xyz.scm => gnu/packages/golang-xyz.scm +15 -0
@@ 24656,6 24656,21 @@ distributions of benchmark measurements
     (list
      #:import-path "gopkg.in/alecthomas/kingpin.v2"))))

(define-public go-gopkg-in-fsnotify-v1
  (package/inherit go-github-com-fsnotify-fsnotify
    (name "go-gopkg-in-fsnotify-v1")
    (arguments
     (list
      #:import-path "gopkg.in/fsnotify.v1"
      #:test-flags #~(list "-skip" "TestDiffMatch/3")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'fix-import-path
            (lambda* (#:key tests? import-path #:allow-other-keys)
              (with-directory-excursion (string-append "src/" import-path)
                (substitute* (find-files "." "\\.go$")
                  (("github.com/fsnotify/fsnotify") import-path))))))))))

(define-public go-gopkg-in-inconshreveable-log15-v2
  (package
    (name "go-gopkg-in-inconshreveable-log15-v2")