From dda29ca7685d360d5428dd827d11a9e4139a0872 Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Thu, 6 Oct 2022 10:21:34 +1100 Subject: init --- day2/ex2-dlrow-olleh/solution.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 day2/ex2-dlrow-olleh/solution.nix (limited to 'day2/ex2-dlrow-olleh/solution.nix') 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) -- cgit v1.2.3