Skip to content

Instantly share code, notes, and snippets.

@l04m33
Last active May 26, 2021 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save l04m33/59ae4f38d3e6f089c76c71b8952ae2bc to your computer and use it in GitHub Desktop.
Save l04m33/59ae4f38d3e6f089c76c71b8952ae2bc to your computer and use it in GitHub Desktop.
error: AccessDenied
Backtrace:
3 (primitive-load "/gnu/store/ngpyqpd3g3k1n31pdlqvp3rw99y?")
In ice-9/eval.scm:
191:35 2 (_ #f)
619:8 1 (_ #(#(#(#(#(#(#(#<directory (guil?> ?) ?) ?) ?) ?) ?) ?))
In guix/build/utils.scm:
654:6 0 (invoke _ . _)
guix/build/utils.scm:654:6: In procedure invoke:
ERROR:
1. &invoke-error:
program: "zig"
arguments: ("build" "-Drelease-safe")
exit-status: 1
term-signal: #f
stop-signal: #f
(define zls
(package
(name "zls")
(version "affbd2d")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/zigtools/zls.git")
(commit version)))
(sha256
(base32
"1dmsmr3ak0vaxz7qxf4h2hrnf0bkcpmvsgb7l3n6z533fhb0an6n"))))
(build-system trivial-build-system)
(arguments `(#:modules ((guix build utils))
#:builder
(begin
(use-modules (guix build utils))
(let* ((srcdir (assoc-ref %build-inputs "source"))
(outdir (assoc-ref %outputs "out"))
(tmpdir (getenv "TMPDIR"))
(build-srcdir (string-append tmpdir "/source"))
(bin-outdir (string-append outdir "/bin"))
(zig-out (assoc-ref %build-inputs "zig")))
(copy-recursively srcdir build-srcdir)
(chdir build-srcdir)
(set-path-environment-variable "PATH" '("bin") `(,zig-out))
(invoke "zig"
"build"
"-Drelease-safe")
(install-file (string-append build-srcdir "/zig-out/bin/zls") bin-outdir)
#t))))
(inputs `(("zig" ,zig)))
(synopsis "The Zig Language Server")
(description "")
(home-page "https://github.com/zigtools/zls")
(license license:expat)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment