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

46 lines
1.3 KiB
Nix
Raw Normal View History

2021-08-16 22:57:05 +02:00
{ lib, stdenv, mkDerivation, fetchFromGitHub
, makeDesktopItem, copyDesktopItems, cmake
2020-02-02 20:34:36 +01:00
, boost, libvorbis, libsndfile, minizip, gtest, qtwebkit }:
2019-09-26 09:49:59 +02:00
mkDerivation rec {
pname = "lsd2dsl";
2021-08-16 22:57:05 +02:00
version = "0.5.4";
2019-09-26 09:49:59 +02:00
src = fetchFromGitHub {
owner = "nongeneric";
repo = pname;
rev = "v${version}";
2021-08-16 22:57:05 +02:00
sha256 = "sha256-PLgfsVVrNBTxI4J0ukEOFRoBkbmB55/sLNn5KyiHeAc=";
2019-09-26 09:49:59 +02:00
};
2021-08-16 22:57:05 +02:00
nativeBuildInputs = [ cmake ] ++ lib.optional stdenv.isLinux copyDesktopItems;
2019-09-26 09:49:59 +02:00
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
2021-08-16 22:57:05 +02:00
desktopItems = lib.singleton (makeDesktopItem {
name = "lsd2dsl";
exec = "lsd2dsl-qtgui";
desktopName = "lsd2dsl";
genericName = "lsd2dsl";
comment = meta.description;
categories = "Dictionary;FileTools;Qt;";
});
2019-09-26 09:49:59 +02:00
installPhase = ''
2020-08-29 15:57:37 +02:00
install -Dm755 console/lsd2dsl gui/lsd2dsl-qtgui -t $out/bin
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 Lingvos proprietary dictionaries.
'';
license = licenses.mit;
maintainers = with maintainers; [ sikmir ];
2021-08-16 22:57:05 +02:00
platforms = platforms.unix;
2019-09-26 09:49:59 +02:00
};
}