Adding an example
Dependencies
- [2]
Z25PX6G2
Change contents
- file addition: examples[2.1]
- file addition: hello[0.20]
- file addition: hello.c[0.39]
#include <stdio.h>int main() {printf("Hello, world!\n");} - file addition: build.ml[0.39]
open Elpeopen Lwt.Syntaxlet _ =build(object (self)inherit std_derivationmethod 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) - file addition: Makefile[0.39]
all:gcc -o hello hello.cinstall:install -D --mode 555 hello ${DESTDIR}/usr/bin/hello