aboutsummaryrefslogtreecommitdiff
path: root/day2/ex2-dlrow-olleh/solution.nix
blob: ab235fe8d442ba7df669db26897c6afdfea17147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)