depot/third_party/nixpkgs/pkgs/tools/text/uniscribe/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

31 lines
785 B
Nix

{ 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 ];
};
}