From 699ddb16ddd169f901db271938114ab1a69beaaa Mon Sep 17 00:00:00 2001 From: Daniel Khodabakhsh Date: Tue, 24 Jun 2025 08:37:22 -0700 Subject: gnu: Add node-isexe. * gnu/packages/node-xyz.scm (node-isexe): New variable. Change-Id: I412db97f7c94d3eed15edf9ca9a27f843a3079aa Signed-off-by: Andreas Enge --- gnu/packages/node-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 2396ee9e5a..64b182d017 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -575,6 +575,31 @@ It contains functions for colours as well as more complex formatting such as rainbows.") (license license:expat))) +(define-public node-isexe + (package + (name "node-isexe") + (version "2.0.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/isaacs/isexe") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "18rh937j0m0jkzdxfdvvjv6nsdbrdqipnq7nvv1ab7b7rjyw5id3")))) + (build-system node-build-system) + (arguments (list + #:tests? #f ; FIXME: Tests require 'tap'. + #:phases #~(modify-phases %standard-phases + (add-before 'patch-dependencies 'modify-package (lambda _ + (modify-json + (delete-dev-dependencies))))))) + (synopsis "Minimal module to check if a file is executable.") + (description "Minimal module to check if a file is executable, and a normal file. +Uses fs.stat.") + (home-page (git-reference-url (origin-uri source))) + (license license:isc))) + (define-public node-long-stack-traces (package (name "node-long-stack-traces") -- cgit v1.3