nixpkgs/pkgs/tools/text/uniscribe/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

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