1{ stdenv, lib, bundlerEnv, bundlerUpdateScript, makeWrapper }:
2
3let
4 rubyEnv = bundlerEnv {
5 name = "uniscribe";
6 gemdir = ./.;
7 };
8in
9stdenv.mkDerivation rec {
10 pname = "uniscribe";
11 version = (import ./gemset.nix).uniscribe.version;
12
13 nativeBuildInputs = [ makeWrapper ];
14
15 dontUnpack = true;
16
17 installPhase = ''
18 mkdir -p $out/bin
19 makeWrapper ${rubyEnv}/bin/uniscribe $out/bin/uniscribe
20 '';
21
22 passthru.updateScript = bundlerUpdateScript "uniscribe";
23
24 meta = with lib; {
25 description = "Explains Unicode characters/code points: Displays their name, category, and shows compositions";
26 homepage = "https://github.com/janlelis/uniscribe";
27 license = licenses.mit;
28 maintainers = with maintainers; [ kjeremy ];
29 };
30}