nixpkgs/pkgs/desktops/lumina/lumina-calculator/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

34 lines
822 B
Nix

{ lib, mkDerivation, fetchFromGitHub, qmake, qtbase, qttools }:
mkDerivation rec {
pname = "lumina-calculator";
version = "1.6.0";
src = fetchFromGitHub {
owner = "lumina-desktop";
repo = pname;
rev = "v${version}";
sha256 = "1238d1m0mjkwkdpgq165a4ql9aql0aji5f41rzdzny6m7ws9nm2y";
};
sourceRoot = "${src.name}/src-qt5";
nativeBuildInputs = [ qmake qttools ];
buildInputs = [ qtbase ];
qmakeFlags = [
"CONFIG+=WITH_I18N"
"LRELEASE=${lib.getDev qttools}/bin/lrelease"
];
meta = with lib; {
description = "Scientific calculator for the Lumina Desktop";
mainProgram = "lumina-calculator";
homepage = "https://github.com/lumina-desktop/lumina-calculator";
license = licenses.bsd3;
platforms = platforms.unix;
maintainers = teams.lumina.members;
};
}