2021-08-16 21:57:05 +01:00
|
|
|
|
{ lib, stdenv, mkDerivation, fetchFromGitHub
|
|
|
|
|
, makeDesktopItem, copyDesktopItems, cmake
|
2020-02-02 19:34:36 +00:00
|
|
|
|
, boost, libvorbis, libsndfile, minizip, gtest, qtwebkit }:
|
2019-09-26 08:49:59 +01:00
|
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
|
pname = "lsd2dsl";
|
2021-08-16 21:57:05 +01:00
|
|
|
|
version = "0.5.4";
|
2019-09-26 08:49:59 +01:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "nongeneric";
|
|
|
|
|
repo = pname;
|
|
|
|
|
rev = "v${version}";
|
2021-08-16 21:57:05 +01:00
|
|
|
|
sha256 = "sha256-PLgfsVVrNBTxI4J0ukEOFRoBkbmB55/sLNn5KyiHeAc=";
|
2019-09-26 08:49:59 +01:00
|
|
|
|
};
|
|
|
|
|
|
2021-08-16 21:57:05 +01:00
|
|
|
|
nativeBuildInputs = [ cmake ] ++ lib.optional stdenv.isLinux copyDesktopItems;
|
2019-09-26 08:49:59 +01:00
|
|
|
|
|
2020-02-02 19:34:36 +00:00
|
|
|
|
buildInputs = [ boost libvorbis libsndfile minizip gtest qtwebkit ];
|
2019-09-26 08:49:59 +01:00
|
|
|
|
|
2020-02-02 19:34:36 +00:00
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=unused-result -Wno-error=missing-braces";
|
2019-09-26 08:49:59 +01:00
|
|
|
|
|
2021-08-16 21:57:05 +01:00
|
|
|
|
desktopItems = lib.singleton (makeDesktopItem {
|
|
|
|
|
name = "lsd2dsl";
|
|
|
|
|
exec = "lsd2dsl-qtgui";
|
|
|
|
|
desktopName = "lsd2dsl";
|
|
|
|
|
genericName = "lsd2dsl";
|
|
|
|
|
comment = meta.description;
|
2022-02-22 14:56:15 +00:00
|
|
|
|
categories = [ "Dictionary" "FileTools" "Qt" ];
|
2021-08-16 21:57:05 +01:00
|
|
|
|
});
|
|
|
|
|
|
2019-09-26 08:49:59 +01:00
|
|
|
|
installPhase = ''
|
2020-08-29 14:57:37 +01:00
|
|
|
|
install -Dm755 console/lsd2dsl gui/lsd2dsl-qtgui -t $out/bin
|
2019-09-26 08:49:59 +01:00
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
homepage = "https://rcebits.com/lsd2dsl/";
|
|
|
|
|
description = "Lingvo dictionaries decompiler";
|
|
|
|
|
longDescription = ''
|
|
|
|
|
A decompiler for ABBYY Lingvo’s proprietary dictionaries.
|
|
|
|
|
'';
|
|
|
|
|
license = licenses.mit;
|
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
2021-08-16 21:57:05 +01:00
|
|
|
|
platforms = platforms.unix;
|
2019-09-26 08:49:59 +01:00
|
|
|
|
};
|
|
|
|
|
}
|