2020-04-24 23:36:52 +00:00
|
|
|
|
{ stdenv, mkDerivation, lib, fetchFromGitHub, cmake
|
|
|
|
|
, boost, libvorbis, libsndfile, minizip, gtest, qtwebkit }:
|
|
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
|
pname = "lsd2dsl";
|
2020-11-30 08:33:03 +00:00
|
|
|
|
version = "0.5.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "nongeneric";
|
|
|
|
|
repo = pname;
|
|
|
|
|
rev = "v${version}";
|
2020-11-30 08:33:03 +00:00
|
|
|
|
sha256 = "0s0la6zkg584is93p4nj1ha3pbnvadq84zgsv8nym3r35n7k8czi";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
|
|
buildInputs = [ boost libvorbis libsndfile minizip gtest qtwebkit ];
|
|
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=unused-result -Wno-error=missing-braces";
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
'' + lib.optionalString stdenv.isDarwin ''
|
|
|
|
|
wrapQtApp $out/bin/lsd2dsl
|
|
|
|
|
wrapQtApp $out/bin/lsd2dsl-qtgui
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
|
|
|
|
};
|
|
|
|
|
}
|