gnu: pies: Remove pre-generated files.

* gnu/packages/admin.scm (pies)[source]: Add snippet to remove
pre-generated files.
[native-inputs]: Add bison, flex.
This commit is contained in:
Efraim Flashner 2022-08-14 17:52:01 +03:00
parent f9666e40d3
commit 360bf760bd
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -792,7 +792,16 @@ (define-public pies
version ".tar.bz2")) version ".tar.bz2"))
(sha256 (sha256
(base32 (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) (build-system gnu-build-system)
(arguments (arguments
'(#:phases (modify-phases %standard-phases '(#:phases (modify-phases %standard-phases
@ -804,6 +813,7 @@ (define-public pies
(substitute* '("src/progman.c" "src/comp.c") (substitute* '("src/progman.c" "src/comp.c")
(("\"/bin/sh\"") (("\"/bin/sh\"")
(string-append "\"" bash "/bin/sh\""))))))))) (string-append "\"" bash "/bin/sh\"")))))))))
(native-inputs (list bison flex))
(home-page "https://www.gnu.org.ua/software/pies/") (home-page "https://www.gnu.org.ua/software/pies/")
(synopsis "Program invocation and execution supervisor") (synopsis "Program invocation and execution supervisor")
(description (description