nixpkgs/pkgs/applications/misc/lsd2dsl/default.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

2020-02-02 19:34:36 +00:00
{ stdenv, mkDerivation, lib, fetchFromGitHub, cmake
, boost, libvorbis, libsndfile, minizip, gtest, qtwebkit }:
2019-09-26 08:49:59 +01:00
mkDerivation rec {
pname = "lsd2dsl";
2020-08-29 14:57:37 +01:00
version = "0.5.2";
2019-09-26 08:49:59 +01:00
src = fetchFromGitHub {
owner = "nongeneric";
repo = pname;
rev = "v${version}";
2020-08-29 14:57:37 +01:00
sha256 = "0s0la6zkg584is93p4nj1ha3pbnvadq84zgsv8nym3r35n7k8czi";
2019-09-26 08:49:59 +01:00
};
nativeBuildInputs = [ cmake ];
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
installPhase = ''
2020-08-29 14:57:37 +01:00
install -Dm755 console/lsd2dsl gui/lsd2dsl-qtgui -t $out/bin
2020-02-02 19:34:36 +00:00
'' + lib.optionalString stdenv.isDarwin ''
wrapQtApp $out/bin/lsd2dsl
wrapQtApp $out/bin/lsd2dsl-qtgui
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 Lingvos proprietary dictionaries.
'';
license = licenses.mit;
maintainers = with maintainers; [ sikmir ];
2020-02-02 19:34:36 +00:00
platforms = with platforms; linux ++ darwin;
2019-09-26 08:49:59 +01:00
};
}