diff options
author | Justin Bedo <cu@cua0.org> | 2022-10-06 10:21:34 +1100 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2022-10-07 14:58:01 +1100 |
commit | dda29ca7685d360d5428dd827d11a9e4139a0872 (patch) | |
tree | 0dcc853fd90abf245b6ba0a7506b2e1093bf7800 /day2/ex2-dlrow-olleh/solution.nix |
init
Diffstat (limited to 'day2/ex2-dlrow-olleh/solution.nix')
-rw-r--r-- | day2/ex2-dlrow-olleh/solution.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/day2/ex2-dlrow-olleh/solution.nix b/day2/ex2-dlrow-olleh/solution.nix new file mode 100644 index 0000000..ab235fe --- /dev/null +++ b/day2/ex2-dlrow-olleh/solution.nix @@ -0,0 +1,14 @@ +{bionix}: +with bionix; let + hello-world = callBionix ../ex1-hello-world {}; + + rev = input: + stage { + name = "rev"; + buildInputs = [pkgs.toybox]; + buildCommand = '' + rev < ${input} > $out + ''; + }; +in + rev (rev hello-world) |