D7MVXDG2LFGDBMVK7UES3XJCP3XKHDTEDABK5BBR7LHLR767UNGAC
#include <stdio.h>
int main() {
printf("Hello, world!\n");
}
open Elpe
open Lwt.Syntax
let _ =
build
(object (self)
inherit std_derivation
method name = "test"
method! src = self#local_src "."
method! build_inputs =
Lwt.return
[
(ubuntu "gcc" :> derivation);
(ubuntu "libc6-dev" :> derivation);
(ubuntu "make" :> derivation);
(ubuntu "coreutils" :> derivation);
(ubuntu "libstdc++-13-dev" :> derivation);
]
end)
all:
gcc -o hello hello.c
install:
install -D --mode 555 hello ${DESTDIR}/usr/bin/hello