about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/text/uniscribe/default.nix
blob: 98b164a9d58d47eb8462b826bd2d2d4e4663e93b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenv, lib, bundlerEnv, bundlerUpdateScript, makeWrapper }:

let
  rubyEnv = bundlerEnv {
    name = "uniscribe";
    gemdir = ./.;
  };
in
stdenv.mkDerivation rec {
  pname = "uniscribe";
  version = (import ./gemset.nix).uniscribe.version;

  nativeBuildInputs = [ makeWrapper ];

  dontUnpack = true;

  installPhase = ''
    mkdir -p $out/bin
    makeWrapper ${rubyEnv}/bin/uniscribe $out/bin/uniscribe
  '';

  passthru.updateScript = bundlerUpdateScript "uniscribe";

  meta = with lib; {
    description = "Explains Unicode characters/code points: Displays their name, category, and shows compositions";
    mainProgram = "uniscribe";
    homepage = "https://github.com/janlelis/uniscribe";
    license = licenses.mit;
    maintainers = with maintainers; [ kjeremy ];
  };
}