final: prev: { xcompose = prev.stdenv.mkDerivation (let rev = "150c47fabb9f45e81138f71347dc75f69b5dd987"; in { pname = "xcompose"; version = builtins.substring 0 8 rev; src = prev.fetchFromGitHub { owner = "kragen"; repo = "xcompose"; inherit rev; hash = "sha256-XQ0ZuXGvDLz9fJ0yGHtgL4wl9Jx3SG30cGBM2b947iY="; }; 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 ''; }); }