summaryrefslogtreecommitdiff
path: root/overlays/xcompose.nix
blob: e7603b83f05484ec825f4e7db487719727c02f3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ final, prev, sources, ... }: {
  xcompose = prev.stdenv.mkDerivation (sources.xcompose // {
    nativeBuildInputs = with final; [ perl ];

    postPatch = ''
      substituteInPlace emojitrans2.pl --replace "/usr/bin/env -S perl -p" "${final.perl}/bin/perl -p"
    '';

    installPhase = ''
      mkdir -p $out
      install -t $out \
        dotXCompose frakturcompose \
        emoji.compose modletters.compose tags.compose maths.compose parens.compose
    '';
  });
}