gnu: Add node-binary-search-bootstrap.
authorJelle Licht <jlicht@fsfe.org>
Tue, 30 Mar 2021 05:27:37 +0000 (01:27 -0400)
committerJelle Licht <jlicht@fsfe.org>
Fri, 2 Apr 2021 16:04:23 +0000 (18:04 +0200)
* gnu/packages/node.scm (node-binary-search-bootstrap): New variable.

gnu/packages/node.scm

index 1d17502..21d6052 100644 (file)
@@ -276,6 +276,33 @@ devices.")
 formats to milliseconds.")
     (license license:expat)))
 
+(define-public node-binary-search-bootstrap
+  (package
+    (name "node-binary-search")
+    (version "1.3.6")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/darkskyapp/binary-search.git")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "1xr2msdc143cd3xwgq7n3rhzy7j8wrnaidxl0r6l6b6g3mpbpjig"))))
+    (build-system node-build-system)
+    (arguments
+     `(#:node ,node-bootstrap
+       #:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure))))
+    (home-page "https://github.com/darkskyapp/binary-search#readme")
+    (properties '((hidden? . #t)))
+    (synopsis "Tiny binary search function with comparators")
+    (description "This package is a binary search function for Node.js.")
+    (license license:cc0)))
+
 (define-public libnode
   (package/inherit node
     (name "libnode")