gwl-devel
[Top][All Lists]
Advanced

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

GWL as a build-automation


From: Olivier Dion
Subject: GWL as a build-automation
Date: Sun, 05 Jun 2022 18:21:32 -0400

Hi,

I've been hacking around for the past weeks on a build system that uses
Guix.  The more I write it, the more I find similarities with what GWL
already does/provides.


So I'm thinking, one could easily do something like this for a simple
Guile project:

--8<---------------cut here---------------start------------->8---
process compile-guile-source (with dot-scm)
  package "guile"
  inputs  : file dot-scm
  outputs : file : string-replace-substring dot-scm ".scm" ".go"
  # {
    guild compile --output {{outputs}} {{inputs}}
  }
--8<---------------cut here---------------end--------------->8---

And this could also be done for other projects, e.g.:

--8<---------------cut here---------------start------------->8---
process compile-c-source (with dot-c)
  package "gcc-toolchain"
  inputs  : file dot-c
  outputs : file : string-replace-substring dot-c ".c" ".o"
  # {
    gcc -c -o {{outputs}} {{inputs}}
  }
--8<---------------cut here---------------end--------------->8---


I know that GWL focuses on scientific workflows, but I think that it can
go beyond its original goal.

Thoughts?

-- 
Olivier Dion
oldiob.dev




reply via email to

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