mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, glib, expat
|
|
, installShellFiles }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "prevo-tools";
|
|
version = "0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bpeel";
|
|
repo = "prevodb";
|
|
rev = version;
|
|
sha256 = "1fyrc4g9qdq04nxs4g8x0krxfani5xady6v9m0qfqpbh4xk2ry2d";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config installShellFiles ];
|
|
buildInputs = [ glib expat ];
|
|
|
|
postInstall = ''
|
|
installShellCompletion --bash src/prevo-completion
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description =
|
|
"CLI tools for the offline version of the Esperanto dictionary Reta Vortaro";
|
|
longDescription = ''
|
|
PReVo is the "portable" ReVo, i.e., the offline version
|
|
of the Esperanto dictionary Reta Vortaro.
|
|
|
|
This package provides the command line application prevo to query a local
|
|
ReVo database, as well as the command line tool revodb to create such a
|
|
database for this application or for the Android app of the same name.
|
|
'';
|
|
homepage = "https://github.com/bpeel/prevodb";
|
|
license = licenses.gpl2Only;
|
|
maintainers = [ maintainers.das-g ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|