guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

11/11: gnu: editorconfig-core-c: Delete static library.


From: guix-commits
Subject: 11/11: gnu: editorconfig-core-c: Delete static library.
Date: Mon, 31 Aug 2020 22:48:56 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit 1c4b3512db48a34aa5e7993167aa70a3124cdf34
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Tue Sep 1 04:43:34 2020 +0200

    gnu: editorconfig-core-c: Delete static library.
    
    * gnu/packages/text-editors.scm (editorconfig-core-c)[arguments]: Add a
    ‘delete-static-library’ phase.
---
 gnu/packages/text-editors.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
index e0f0783..5b7f2e9 100644
--- a/gnu/packages/text-editors.scm
+++ b/gnu/packages/text-editors.scm
@@ -727,7 +727,14 @@ in plain text file format.")
            (lambda* (#:key inputs #:allow-other-keys)
              (let ((tests (assoc-ref inputs "tests")))
                (copy-recursively tests "tests"))
-             #t)))))
+             #t))
+         (add-after 'install 'delete-static-library
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (lib (string-append out "/lib")))
+               (with-directory-excursion lib
+                 (delete-file "libeditorconfig_static.a"))
+               #t))))))
     (native-inputs
      `(("tests"
         ,(origin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]