From 413d8a789659baa7948b8e67bc2cbbd7ace71e5b Mon Sep 17 00:00:00 2001 From: Rutherther Date: Wed, 7 May 2025 19:31:55 +0200 Subject: [PATCH] vhdl-ls: Do not install source --- modules/ruther/packages/vhdl-ls.scm | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/modules/ruther/packages/vhdl-ls.scm b/modules/ruther/packages/vhdl-ls.scm index fbbb02e..1838cad 100644 --- a/modules/ruther/packages/vhdl-ls.scm +++ b/modules/ruther/packages/vhdl-ls.scm @@ -39,6 +39,7 @@ (my-cargo-inputs 'vhdl-ls)) (arguments (list + #:install-source? #f #:phases #~(modify-phases %standard-phases (add-after 'install 'install-libraries @@ -46,36 +47,11 @@ (mkdir-p (string-append #$output "/share/vhdl_libraries")) (copy-recursively "vhdl_libraries" (string-append #$output "/share/vhdl_libraries")))) - (replace 'package - (lambda _ - (begin - ;;error: invalid inclusion of reserved file name Cargo.toml.orig in package source - (when (file-exists? "Cargo.toml.orig") - (delete-file "Cargo.toml.orig")) - - ;; Use unstable feature ‘--registry’. - (setenv "RUSTC_BOOTSTRAP" "1") - (for-each - (lambda (pkg) - (invoke "cargo" "package" "--offline" "--package" pkg - "--registry" "crates-io" "-Z" "package-workspace" - "--no-metadata" "--no-verify") - (for-each - (lambda (crate) - (invoke "tar" "xzf" crate "-C" "guix-vendor")) - (begin - (delete-file-recursively "target/package/tmp-registry") - (find-files "target/package" "\\.crate$"))) - ((assoc-ref %standard-phases 'patch-cargo-checksums))) - '("vhdl_lang_macros" "vhdl_lang" "vhdl_ls")) - (unsetenv "RUSTC_BOOTSTRAP")))) (replace 'install (lambda _ (mkdir-p #$output) (invoke "cargo" "install" "--no-track" "--path" "./vhdl_ls" "--root" #$output)))) - ;; TODO After rust-team gets merged, remove replacement of 'package and use this - ;; #:cargo-package-crates ''("vhdl_lang_macros" "vhdl_lang" "vhdl_ls") ;; TODO After rust-team gets merged, remove replacement of 'install and use this ;; #:cargo-install-paths ''("vhdl_ls") #:cargo-test-flags -- 2.49.0