2021-08-22 07:53:02 +00:00
|
|
|
|
{ lib, stdenv, mkDerivation, fetchFromGitHub
|
|
|
|
|
, makeDesktopItem, copyDesktopItems, cmake
|
2020-04-24 23:36:52 +00:00
|
|
|
|
, boost, libvorbis, libsndfile, minizip, gtest, qtwebkit }:
|
|
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
|
pname = "lsd2dsl";
|
2021-08-22 07:53:02 +00:00
|
|
|
|
version = "0.5.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "nongeneric";
|
|
|
|
|
repo = pname;
|
|
|
|
|
rev = "v${version}";
|
2021-08-22 07:53:02 +00:00
|
|
|
|
sha256 = "sha256-PLgfsVVrNBTxI4J0ukEOFRoBkbmB55/sLNn5KyiHeAc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
2021-08-22 07:53:02 +00:00
|
|
|
|
nativeBuildInputs = [ cmake ] ++ lib.optional stdenv.isLinux copyDesktopItems;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
buildInputs = [ boost libvorbis libsndfile minizip gtest qtwebkit ];
|
|
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=unused-result -Wno-error=missing-braces";
|
|
|
|
|
|
2021-08-22 07:53:02 +00:00
|
|
|
|
desktopItems = lib.singleton (makeDesktopItem {
|
|
|
|
|
name = "lsd2dsl";
|
|
|
|
|
exec = "lsd2dsl-qtgui";
|
|
|
|
|
desktopName = "lsd2dsl";
|
|
|
|
|
genericName = "lsd2dsl";
|
|
|
|
|
comment = meta.description;
|
2022-03-05 16:20:37 +00:00
|
|
|
|
categories = [ "Dictionary" "FileTools" "Qt" ];
|
2021-08-22 07:53:02 +00:00
|
|
|
|
});
|
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
installPhase = ''
|
2020-11-30 08:33:03 +00:00
|
|
|
|
install -Dm755 console/lsd2dsl gui/lsd2dsl-qtgui -t $out/bin
|
2020-04-24 23:36:52 +00: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-22 07:53:02 +00:00
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
}
|