From 360bf760bdf8dc04918e7962d6a2c3797989ae4b Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 14 Aug 2022 17:52:01 +0300 Subject: [PATCH] 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 @@ (define-public pies 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 @@ (define-public pies (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