nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 41 lines 1.0 kB view raw
1{ lib, stdenv, fetchFromGitHub, prevo-tools }: 2 3stdenv.mkDerivation rec { 4 pname = "prevo-data"; 5 version = "2020-03-08"; 6 7 src = fetchFromGitHub { 8 owner = "bpeel"; 9 repo = "revo"; 10 rev = "1e8d7197c0bc831e2127909e77e64dfc26906bdd"; 11 sha256 = "1ldhzpi3d5cbssv8r7acsn7qwxcl8qpqi8ywpsp7cbgx3w7hhkyz"; 12 }; 13 14 nativeBuildInputs = [ prevo-tools ]; 15 16 dontUnpack = true; 17 18 buildPhase = '' 19 prevodb -s -i $src -o prevo.db 20 ''; 21 22 installPhase = '' 23 mkdir -p $out/share/prevo 24 cp prevo.db $out/share/prevo/ 25 ''; 26 27 meta = with lib; { 28 description = 29 "data for offline version of the Esperanto dictionary Reta Vortaro"; 30 longDescription = '' 31 PReVo is the "portable" ReVo, i.e., the offline version 32 of the Esperanto dictionary Reta Vortaro. 33 34 This package provides the ReVo database for the prevo command line application. 35 ''; 36 homepage = "https://github.com/bpeel/revo"; 37 license = licenses.gpl2Only; 38 maintainers = [ maintainers.das-g ]; 39 platforms = platforms.linux; 40 }; 41}