diff options
Diffstat (limited to 'overlays')
-rw-r--r-- | overlays/xcompose.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/overlays/xcompose.nix b/overlays/xcompose.nix new file mode 100644 index 00000000..2bcd6c01 --- /dev/null +++ b/overlays/xcompose.nix | |||
@@ -0,0 +1,28 @@ | |||
1 | final: prev: { | ||
2 | xcompose = prev.stdenv.mkDerivation (let | ||
3 | rev = "150c47fabb9f45e81138f71347dc75f69b5dd987"; | ||
4 | in { | ||
5 | pname = "xcompose"; | ||
6 | version = builtins.substring 0 8 rev; | ||
7 | |||
8 | src = prev.fetchFromGitHub { | ||
9 | owner = "kragen"; | ||
10 | repo = "xcompose"; | ||
11 | inherit rev; | ||
12 | hash = "sha256-XQ0ZuXGvDLz9fJ0yGHtgL4wl9Jx3SG30cGBM2b947iY="; | ||
13 | }; | ||
14 | |||
15 | nativeBuildInputs = with final; [ perl ]; | ||
16 | |||
17 | postPatch = '' | ||
18 | substituteInPlace emojitrans2.pl --replace "/usr/bin/env -S perl -p" "${final.perl}/bin/perl -p" | ||
19 | ''; | ||
20 | |||
21 | installPhase = '' | ||
22 | mkdir -p $out | ||
23 | install -t $out \ | ||
24 | dotXCompose frakturcompose \ | ||
25 | emoji.compose modletters.compose tags.compose maths.compose parens.compose | ||
26 | ''; | ||
27 | }); | ||
28 | } | ||