2020-02-02 20:34:36 +01:00
|
|
|
|
{ stdenv, mkDerivation, lib, fetchFromGitHub, cmake
|
|
|
|
|
, boost, libvorbis, libsndfile, minizip, gtest, qtwebkit }:
|
2019-09-26 09:49:59 +02:00
|
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
|
pname = "lsd2dsl";
|
2020-02-02 20:34:36 +01:00
|
|
|
|
version = "0.5.1";
|
2019-09-26 09:49:59 +02:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "nongeneric";
|
|
|
|
|
repo = pname;
|
|
|
|
|
rev = "v${version}";
|
2020-02-02 20:34:36 +01:00
|
|
|
|
sha256 = "100qd9i0x6r0nkw1ic2p0xjr16jlhinxkn1x7i98s4xmw4wyb8n8";
|
2019-09-26 09:49:59 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
2020-02-02 20:34:36 +01:00
|
|
|
|
buildInputs = [ boost libvorbis libsndfile minizip gtest qtwebkit ];
|
2019-09-26 09:49:59 +02:00
|
|
|
|
|
2020-02-02 20:34:36 +01:00
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=unused-result -Wno-error=missing-braces";
|
2019-09-26 09:49:59 +02:00
|
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-02-02 20:34:36 +01:00
|
|
|
|
install -Dm755 console/lsd2dsl $out/bin/lsd2dsl
|
|
|
|
|
install -m755 gui/lsd2dsl-qtgui $out/bin/lsd2dsl-qtgui
|
|
|
|
|
'' + lib.optionalString stdenv.isDarwin ''
|
|
|
|
|
wrapQtApp $out/bin/lsd2dsl
|
|
|
|
|
wrapQtApp $out/bin/lsd2dsl-qtgui
|
2019-09-26 09:49:59 +02: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 ];
|
2020-02-02 20:34:36 +01:00
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
2019-09-26 09:49:59 +02:00
|
|
|
|
};
|
|
|
|
|
}
|