3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/lsd2dsl/default.nix

49 lines
1.4 KiB
Nix
Raw Normal View History

2021-08-16 21:57:05 +01:00
{ lib, stdenv, mkDerivation, fetchFromGitHub
, makeDesktopItem, copyDesktopItems, cmake
2020-02-02 19:34:36 +00:00
, boost, libvorbis, libsndfile, minizip, gtest, qtwebkit }:
2019-09-26 08:49:59 +01:00
mkDerivation rec {
pname = "lsd2dsl";
2021-08-16 21:57:05 +01:00
version = "0.5.4";
2019-09-26 08:49:59 +01:00
src = fetchFromGitHub {
owner = "nongeneric";
repo = pname;
rev = "v${version}";
2021-08-16 21:57:05 +01:00
sha256 = "sha256-PLgfsVVrNBTxI4J0ukEOFRoBkbmB55/sLNn5KyiHeAc=";
2019-09-26 08:49:59 +01:00
};
2021-08-16 21:57:05 +01:00
nativeBuildInputs = [ cmake ] ++ lib.optional stdenv.isLinux copyDesktopItems;
2019-09-26 08:49:59 +01:00
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
2021-08-16 21:57:05 +01:00
desktopItems = lib.singleton (makeDesktopItem {
name = "lsd2dsl";
exec = "lsd2dsl-qtgui";
desktopName = "lsd2dsl";
genericName = "lsd2dsl";
comment = meta.description;
categories = "Dictionary;FileTools;Qt;";
});
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 ];
2021-08-16 21:57:05 +01:00
platforms = platforms.unix;
2019-09-26 08:49:59 +01:00
};
}