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