gnu: rust-jemalloc-sys-0.3: Remove vendored code.
* gnu/packages/crates-io.scm (rust-jemalloc-sys-0.3)[source]: Remove vendored code. [arguments]: Don't remove missing vendored code.
This commit is contained in:
		
							parent
							
								
									0173e69f52
								
							
						
					
					
						commit
						e2302953d5
					
				
					 1 changed files with 5 additions and 7 deletions
				
			
		| 
						 | 
					@ -5328,10 +5328,13 @@ wasm-bindgen crate.")
 | 
				
			||||||
      (origin
 | 
					      (origin
 | 
				
			||||||
        (method url-fetch)
 | 
					        (method url-fetch)
 | 
				
			||||||
        (uri (crate-uri "jemalloc-sys" version))
 | 
					        (uri (crate-uri "jemalloc-sys" version))
 | 
				
			||||||
        (file-name (string-append name "-" version ".crate"))
 | 
					        (file-name (string-append name "-" version ".tar.gz"))
 | 
				
			||||||
        (sha256
 | 
					        (sha256
 | 
				
			||||||
         (base32
 | 
					         (base32
 | 
				
			||||||
          "0ify9vlql01qhfxlj7d4p9jvcp90mj2h69nkbq7slccvbhzryfqd"))))
 | 
					          "0ify9vlql01qhfxlj7d4p9jvcp90mj2h69nkbq7slccvbhzryfqd"))
 | 
				
			||||||
 | 
					        (modules '((guix build utils)))
 | 
				
			||||||
 | 
					        (snippet
 | 
				
			||||||
 | 
					         '(begin (delete-file-recursively "jemalloc") #t))))
 | 
				
			||||||
    (build-system cargo-build-system)
 | 
					    (build-system cargo-build-system)
 | 
				
			||||||
    (arguments
 | 
					    (arguments
 | 
				
			||||||
     `(#:cargo-inputs
 | 
					     `(#:cargo-inputs
 | 
				
			||||||
| 
						 | 
					@ -5344,11 +5347,6 @@ wasm-bindgen crate.")
 | 
				
			||||||
         (add-after 'configure 'override-jemalloc
 | 
					         (add-after 'configure 'override-jemalloc
 | 
				
			||||||
           (lambda* (#:key inputs #:allow-other-keys)
 | 
					           (lambda* (#:key inputs #:allow-other-keys)
 | 
				
			||||||
             (let ((jemalloc (assoc-ref inputs "jemalloc")))
 | 
					             (let ((jemalloc (assoc-ref inputs "jemalloc")))
 | 
				
			||||||
               (delete-file-recursively "jemalloc")
 | 
					 | 
				
			||||||
               (delete-file-recursively
 | 
					 | 
				
			||||||
                 (string-append "guix-vendor/rust-jemalloc-sys-"
 | 
					 | 
				
			||||||
                                ,(package-version rust-jemalloc-sys-0.3)
 | 
					 | 
				
			||||||
                                ".crate/jemalloc"))
 | 
					 | 
				
			||||||
               (setenv "JEMALLOC_OVERRIDE"
 | 
					               (setenv "JEMALLOC_OVERRIDE"
 | 
				
			||||||
                       (string-append jemalloc "/lib/libjemalloc_pic.a")))
 | 
					                       (string-append jemalloc "/lib/libjemalloc_pic.a")))
 | 
				
			||||||
             #t)))))
 | 
					             #t)))))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue