summaryrefslogtreecommitdiff
path: root/overlays
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-03-03 17:44:39 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-03-03 17:44:39 +0100
commitc9e147c93b8bd3c52b2e7658d928daec6bd824e1 (patch)
tree1faa7faff44691ff0f9004c8658541a17e5fa983 /overlays
parentaea1139c6dff586038685464e789398185df8b09 (diff)
downloadnixos-c9e147c93b8bd3c52b2e7658d928daec6bd824e1.tar
nixos-c9e147c93b8bd3c52b2e7658d928daec6bd824e1.tar.gz
nixos-c9e147c93b8bd3c52b2e7658d928daec6bd824e1.tar.bz2
nixos-c9e147c93b8bd3c52b2e7658d928daec6bd824e1.tar.xz
nixos-c9e147c93b8bd3c52b2e7658d928daec6bd824e1.zip
gkleen@sif: ...
Diffstat (limited to 'overlays')
-rw-r--r--overlays/xcompose.nix28
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 @@
1final: 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}