From 0fa46caa532a793d17ca1a628148096ff5d1f686 Mon Sep 17 00:00:00 2001 From: Anurag Ohri Date: Thu, 12 Jan 2023 17:39:20 +0530 Subject: [PATCH] First commit --- .gitignore | 1 + README.md | 47 +++++++++++++++++++++++++++++++++++++++++++++++ builder.sh | 2 ++ default.nix | 9 +++++++++ hello.c | 6 ++++++ release.nix | 9 +++++++++ 6 files changed, 74 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 builder.sh create mode 100644 default.nix create mode 100644 hello.c create mode 100644 release.nix diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e2f5dd2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +result \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..70b63e1 --- /dev/null +++ b/README.md @@ -0,0 +1,47 @@ +# smithy-test + +Hello hello my friends + +Will be used to setup Smithy locally + +Push test + +try and try again + +one more time + +again! + +yup + +two + +three + +final + +new encoders + +once more + +again + +and again + +Testing + +test + +App testing + +Webhook testing + +Update PR + +Test on Prod + +Merge job updates + +Commit Status Update Merge + +Commit Status Push diff --git a/builder.sh b/builder.sh new file mode 100644 index 0000000..d4e12aa --- /dev/null +++ b/builder.sh @@ -0,0 +1,2 @@ +"${coreutils}/bin/mkdir" $out +"${gcc}/bin/gcc" -o $out/hello $src diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..3200195 --- /dev/null +++ b/default.nix @@ -0,0 +1,9 @@ +with (import {}); +derivation { + inherit gcc coreutils; + name = "myhello-0.0.1"; + builder = "${bash}/bin/bash"; + args = [ ./builder.sh ]; + system = "x86_64-linux"; + src = ./hello.c; +} \ No newline at end of file diff --git a/hello.c b/hello.c new file mode 100644 index 0000000..8feefa2 --- /dev/null +++ b/hello.c @@ -0,0 +1,6 @@ +#include + +int main() { + printf("Hello World!"); + return 0; +} \ No newline at end of file diff --git a/release.nix b/release.nix new file mode 100644 index 0000000..3200195 --- /dev/null +++ b/release.nix @@ -0,0 +1,9 @@ +with (import {}); +derivation { + inherit gcc coreutils; + name = "myhello-0.0.1"; + builder = "${bash}/bin/bash"; + args = [ ./builder.sh ]; + system = "x86_64-linux"; + src = ./hello.c; +} \ No newline at end of file