guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: pies: Remove pre-generated files.


From: guix-commits
Subject: 02/02: gnu: pies: Remove pre-generated files.
Date: Sun, 14 Aug 2022 11:21:26 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 360bf760bdf8dc04918e7962d6a2c3797989ae4b
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Aug 14 17:52:01 2022 +0300

    gnu: pies: Remove pre-generated files.
    
    * gnu/packages/admin.scm (pies)[source]: Add snippet to remove
    pre-generated files.
    [native-inputs]: Add bison, flex.
---
 gnu/packages/admin.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 10d4883af2..35d3b53f24 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -792,7 +792,16 @@ memory, disks, network and processes.  It's a Python port 
and continuation of
                            version ".tar.bz2"))
        (sha256
         (base32
-         "0v0xcq0mfil440xq2pa5mjkyva5c9ahqda54z5w2ksl2d78v8a35"))))
+         "0v0xcq0mfil440xq2pa5mjkyva5c9ahqda54z5w2ksl2d78v8a35"))
+       (snippet
+        #~(begin
+            (use-modules (guix build utils))
+            (for-each delete-file
+                      (append
+                        ;; Generated by flex.
+                        (find-files "gres/src" "lex\\.c$")
+                        ;; Generated by bison.
+                        (find-files "gres/src" "-gram\\.[ch]$")))))))
     (build-system gnu-build-system)
     (arguments
      '(#:phases (modify-phases %standard-phases
@@ -804,6 +813,7 @@ memory, disks, network and processes.  It's a Python port 
and continuation of
                         (substitute* '("src/progman.c" "src/comp.c")
                           (("\"/bin/sh\"")
                            (string-append "\"" bash "/bin/sh\"")))))))))
+    (native-inputs (list bison flex))
     (home-page "https://www.gnu.org.ua/software/pies/";)
     (synopsis "Program invocation and execution supervisor")
     (description



reply via email to

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