(begin (use-modules (guix build gnu-build-system) (guix build utils)) (begin (define %build-inputs (quote (("source" . "/gnu/store/4hk82a8bnphf70gd5ivcf4sa542m6ahx-esquema-0.3.0-src.tar.gz") ("guile" . "/gnu/store/ddz7grx7w2yg4dwljx5f64mam8vdfvhl-guile-3.0.9") ("pkg-config" . "/gnu/store/g0y04cyiwnr7mc4xccqikbrffrhkmz0z-pkg-config-0.29.2") ("libseccomp" . "/gnu/store/jirzr66yss0grclphlpsypf6pa67z1f1-libseccomp-2.6.0") ("tar" . "/gnu/store/kwyllqh2iqdgvfdqd1lb28d20gkfdd31-tar-1.35") ("gzip" . "/gnu/store/dc1z8r4i7zhcy6dzkcn87hyz8i6zsd5h-gzip-1.14") ("bzip2" . "/gnu/store/cyccnx4f0xpzvgzsla5d84gcgrpbqwak-bzip2-1.0.8") ("file" . "/gnu/store/2b4xak862gprk1bl0gvd5hzc4p10ya04-file-5.46") ("diffutils" . "/gnu/store/cdhaddfq2klzkvi7dw1sgfra7r8lq1d5-diffutils-3.12") ("patch" . "/gnu/store/1q9g9i4brf7yrninpvh8ydnar9dflqzx-patch-2.7.6") ("findutils" . "/gnu/store/9mmzi7zzsbhjvx2fa1zw6af8ihpf1d7i-findutils-4.10.0") ("gawk" . "/gnu/store/jr3xy6wj8lfxbc6ing8qi36nra95ahzy-gawk-5.3.0") ("zstd" . "/gnu/store/qggngj0q9y53pdjrd5pyg296nfjwyaqr-zstd-1.5.6") ("sed" . "/gnu/store/9hm4vnx1lxvkgppigaw40lx3rfcb4f14-sed-4.9") ("grep" . "/gnu/store/dy7rjfn52q7gqppy57hqgb139rk3pkhk-grep-3.11") ("xz" . "/gnu/store/igsff1dix63snv2iqrkwsfxlijysfp5l-xz-5.4.5") ("coreutils" . "/gnu/store/2pc3s7fp2pi2jkv5ny6d3j9s862nx1bk-coreutils-9.1") ("make" . "/gnu/store/j9adjdb3ds392n2gdka6pzrxc8xhi45x-make-4.4.1") ("bash" . "/gnu/store/8jg2v3cb0nam2bwiyk7f91xz99355csm-bash-minimal-5.2.37") ("ld-wrapper" . "/gnu/store/vsqnqglapnba6f12bmxfvvgw5g8n484j-ld-wrapper-0") ("binutils" . "/gnu/store/ma70w69hn7s43y5giwfgy41snk9jvbv8-binutils-2.44") ("gcc" . "/gnu/store/vdh82dy2vgh6l6w0b9jfnqa1wwk8yn9q-gcc-14.3.0") ("libc" . "/gnu/store/sm52smrxi5bi3vx2x3p782sylrh2jkk3-glibc-2.41") ("libc:static" . "/gnu/store/li9f2i9ak215y861z0hm3rs6f235ykyw-glibc-2.41-static") ("libgc" . "/gnu/store/gb7f23mvjkc2rz5rw71la5jjppf5zimr-libgc-8.2.8") ("libunistring" . "/gnu/store/s2xw1lh6rsl97i39jmc2wjp13q94gnca-libunistring-1.3") ("kernel-headers" . "/gnu/store/d41d6s3pmn5ys0ihi82056qq7z9fjsyk-linux-libre-headers-6.12.17")))) (define %outputs (list (cons "out" ((@ (guile) getenv) "out")))) (define %output (assoc-ref %outputs "out")) (gnu-build #:source "/gnu/store/4hk82a8bnphf70gd5ivcf4sa542m6ahx-esquema-0.3.0-src.tar.gz" #:system "x86_64-linux" #:build "x86_64-unknown-linux-gnu" #:outputs %outputs #:inputs %build-inputs #:search-paths (quote (("GUILE_LOAD_PATH" ("share/guile/site/3.0") ":" directory #f) ("GUILE_LOAD_COMPILED_PATH" ("lib/guile/3.0/site-ccache" "share/guile/site/3.0") ":" directory #f) ("GUILE_EXTENSIONS_PATH" ("lib/guile/3.0/extensions") ":" directory #f) ("PKG_CONFIG_PATH" ("lib/pkgconfig" "lib64/pkgconfig" "share/pkgconfig") ":" directory #f) ("BASH_LOADABLES_PATH" ("lib/bash") ":" directory #f) ("C_INCLUDE_PATH" ("include") ":" directory #f) ("CPLUS_INCLUDE_PATH" ("include/c++" "include") ":" directory #f) ("OBJC_INCLUDE_PATH" ("include") ":" directory #f) ("OBJCPLUS_INCLUDE_PATH" ("include/c++" "include") ":" directory #f) ("LIBRARY_PATH" ("lib" "lib64") ":" directory #f) ("GUIX_LOCPATH" ("lib/locale") ":" directory #f) ("TZDIR" ("share/zoneinfo") #f directory #f))) #:phases (modify-phases %standard-phases (delete (quote configure)) (replace (quote check) (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "make" "smoke" "test-install")))) (add-after (quote install) (quote compile-guile-modules) (lambda _ (let ((scm (string-append ((@ (guile) getenv) "out") "/share/guile/site/3.0")) (go (string-append ((@ (guile) getenv) "out") "/lib/guile/3.0/site-ccache"))) (unsetenv "ESQUEMA_LIBDIR") (for-each (lambda (module) (let ((dst (string-append go "/esquema/" module ".go"))) (mkdir-p (dirname dst)) (invoke "guild" "compile" "-L" scm "-o" dst (string-append scm "/esquema/" module ".scm")))) (quote ("library-path" "constants" "ffi" "container" "sandbox" "runtime"))))))) #:locale "C.UTF-8" #:separate-from-pid1? #t #:bootstrap-scripts %bootstrap-scripts #:configure-flags (quote ()) #:make-flags (list (string-append "CC=" "gcc") (string-append "PREFIX=" ((@ (guile) getenv) "out"))) #:out-of-source? #f #:tests? #t #:test-target "check" #:parallel-build? #t #:parallel-tests? #t #:patch-shebangs? #t #:license-file-regexp "^(COPYING.*|LICEN[CS]E.*|[Ll]icen[cs]e.*|Copy[Rr]ight(\\.(txt|md))?)$" #:strip-binaries? #t #:validate-runpath? #t #:make-dynamic-linker-cache? #t #:license-file-regexp "^(COPYING.*|LICEN[CS]E.*|[Ll]icen[cs]e.*|Copy[Rr]ight(\\.(txt|md))?)$" #:strip-flags (quote ("--strip-unneeded" "--enable-deterministic-archives")) #:strip-directories (quote ("lib" "lib64" "libexec" "bin" "sbin")))))