gnu: cbqn-bootstrap: Install regular files rather than copying them recursively.

* gnu/packages/bqn.scm (cbqn-bootstrap)[arguments]: Reindent.
<#:phases>{install}: Use ‘install-file’ rather than ‘copy-recursively’ for
“bqn”.
This commit is contained in:
Liliana Marie Prikler 2022-10-22 21:01:34 +02:00
parent 8dc467d788
commit 3eca71d4a7
No known key found for this signature in database
GPG Key ID: 442A84B8C70E2F87

View File

@ -141,22 +141,23 @@ the same author.")
"0w38fhwf20drkyijy6nfnhmc5g5gw0zmzgmy1q605x57znlj85a2")))) "0w38fhwf20drkyijy6nfnhmc5g5gw0zmzgmy1q605x57znlj85a2"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
(list #:tests? #f ;skipping tests for bootstrap (list
#:make-flags #~(list (string-append "CC=" #$(cc-for-target))) #:tests? #f ; skipping tests for bootstrap
#:phases #~(modify-phases %standard-phases #:make-flags #~(list (string-append "CC=" #$(cc-for-target)))
(delete 'configure) #:phases
(add-before 'build 'generate-bytecode #~(modify-phases %standard-phases
(lambda* (#:key inputs #:allow-other-keys) (delete 'configure)
(system (string-append #+dbqn (add-before 'build 'generate-bytecode
"/bin/dbqn ./genRuntime " (lambda* (#:key inputs #:allow-other-keys)
#+bqn-sources)))) (system (string-append #+dbqn
(replace 'install "/bin/dbqn ./genRuntime "
(lambda* (#:key outputs #:allow-other-keys) #+bqn-sources))))
(mkdir-p (string-append #$output "/bin")) (replace 'install
(chmod "BQN" #o755) (lambda* (#:key outputs #:allow-other-keys)
(copy-recursively "BQN" (mkdir-p (string-append #$output "/bin"))
(string-append #$output (chmod "BQN" #o755)
"/bin/bqn"))))))) (rename-file "BQN" "bqn")
(install-file "bqn" (string-append #$output "/bin")))))))
(native-inputs (list dbqn bqn-sources)) (native-inputs (list dbqn bqn-sources))
(inputs (list icedtea-8 libffi)) (inputs (list icedtea-8 libffi))
(synopsis "BQN implementation in C") (synopsis "BQN implementation in C")