nixpkgs/pkgs/applications/misc/qolibri/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

33 lines
844 B
Nix

{ stdenv, lib, fetchFromGitHub, pkg-config, cmake, libeb, lzo
, qtmultimedia, qttools, qtwebengine, wrapQtAppsHook }:
stdenv.mkDerivation rec {
pname = "qolibri";
version = "2.1.4";
src = fetchFromGitHub {
owner = "ludios";
repo = "qolibri";
rev = version;
sha256 = "jyLF1MKDVH0Lt8lw+O93b+LQ4J+s42O3hebthJk83hg=";
};
nativeBuildInputs = [ pkg-config cmake qttools wrapQtAppsHook ];
buildInputs = [
libeb lzo qtmultimedia qtwebengine
];
postInstall = ''
install -D $src/qolibri.desktop -t $out/share/applications
'';
meta = with lib; {
homepage = "https://github.com/ludios/qolibri";
description = "EPWING reader for viewing Japanese dictionaries";
mainProgram = "qolibri";
platforms = platforms.linux;
maintainers = with maintainers; [ ];
license = licenses.gpl2;
};
}