summary refs log tree commit diff
path: root/pkgs/applications/misc/lsd2dsl/default.nix
blob: 5dd5fa0f5122fd26f05ac81426cadb4e84dbfeed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ mkDerivation, lib, fetchFromGitHub, cmake
, boost, libvorbis, libsndfile, minizip, gtest }:

mkDerivation rec {
  pname = "lsd2dsl";
  version = "0.4.1";

  src = fetchFromGitHub {
    owner = "nongeneric";
    repo = pname;
    rev = "v${version}";
    sha256 = "15xjp5xxvl0qc4zp553n7djrbvdp63sfjw406idgxqinfmkqkqdr";
  };

  nativeBuildInputs = [ cmake ];

  buildInputs = [ boost libvorbis libsndfile minizip gtest ];

  NIX_CFLAGS_COMPILE = "-Wno-error=unused-result";

  installPhase = ''
    install -Dm755 lsd2dsl $out/bin/lsd2dsl
    install -m755 qtgui/lsd2dsl-qtgui $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;
  };
}