diff options
author | Emery Hemingway <ehmry@posteo.net> | 2024-01-16 10:16:25 +0200 |
---|---|---|
committer | Emery Hemingway <ehmry@posteo.net> | 2024-01-17 10:39:55 +0000 |
commit | 6c900ea19a74aad802cadc1941a5fc907f36a645 (patch) | |
tree | 1bdd1a3392c4bf68f4dce56d87c300ec170f090d /pkgs/applications | |
parent | 7f2a43bb72ab30bdf134735f4b13ac3efb1955f5 (diff) |
prevo*: move to pkgs/by-name
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/misc/prevo/data.nix | 41 | ||||
-rw-r--r-- | pkgs/applications/misc/prevo/default.nix | 27 | ||||
-rw-r--r-- | pkgs/applications/misc/prevo/tools.nix | 38 |
3 files changed, 0 insertions, 106 deletions
diff --git a/pkgs/applications/misc/prevo/data.nix b/pkgs/applications/misc/prevo/data.nix deleted file mode 100644 index efd19d7745cae..0000000000000 --- a/pkgs/applications/misc/prevo/data.nix +++ /dev/null @@ -1,41 +0,0 @@ -{ lib, stdenv, fetchFromGitHub, prevo-tools }: - -stdenv.mkDerivation rec { - pname = "prevo-data"; - version = "2020-03-08"; - - src = fetchFromGitHub { - owner = "bpeel"; - repo = "revo"; - rev = "1e8d7197c0bc831e2127909e77e64dfc26906bdd"; - sha256 = "1ldhzpi3d5cbssv8r7acsn7qwxcl8qpqi8ywpsp7cbgx3w7hhkyz"; - }; - - nativeBuildInputs = [ prevo-tools ]; - - dontUnpack = true; - - buildPhase = '' - prevodb -s -i $src -o prevo.db - ''; - - installPhase = '' - mkdir -p $out/share/prevo - cp prevo.db $out/share/prevo/ - ''; - - meta = with lib; { - description = - "data for 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 ReVo database for the prevo command line application. - ''; - homepage = "https://github.com/bpeel/revo"; - license = licenses.gpl2Only; - maintainers = [ maintainers.das-g ]; - platforms = platforms.linux; - }; -} diff --git a/pkgs/applications/misc/prevo/default.nix b/pkgs/applications/misc/prevo/default.nix deleted file mode 100644 index 45f5889d4d5db..0000000000000 --- a/pkgs/applications/misc/prevo/default.nix +++ /dev/null @@ -1,27 +0,0 @@ -{ lib, symlinkJoin, prevo-tools, prevo-data, makeWrapper }: - -symlinkJoin rec { - name = "prevo-${version}"; - inherit (prevo-tools) version; - - paths = [ prevo-tools ]; - - nativeBuildInputs = [ makeWrapper ]; - - postBuild = '' - wrapProgram $out/bin/prevo \ - --prefix XDG_DATA_DIRS : "${prevo-data}/share" - ''; - - meta = with lib; { - description = "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. - ''; - homepage = "https://github.com/bpeel/prevodb"; - license = licenses.gpl2Only; - maintainers = [ maintainers.das-g ]; - platforms = platforms.linux; - }; -} diff --git a/pkgs/applications/misc/prevo/tools.nix b/pkgs/applications/misc/prevo/tools.nix deleted file mode 100644 index 508f085bb44b7..0000000000000 --- a/pkgs/applications/misc/prevo/tools.nix +++ /dev/null @@ -1,38 +0,0 @@ -{ 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; - }; -} |