mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
ff1a94e523
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.
32 lines
785 B
Nix
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 ];
|
|
};
|
|
}
|