depot/third_party/nixpkgs/pkgs/desktops/lumina/lumina-calculator/default.nix
Default email 1ae14203fc Project import generated by Copybara.
GitOrigin-RevId: 68398d2dd50efc2d878bf0f83bbc8bc323b6b0e0
2021-01-17 01:15:33 +01:00

32 lines
789 B
Nix

{ lib, stdenv, 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 = "source/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";
homepage = "https://github.com/lumina-desktop/lumina-calculator";
license = licenses.bsd3;
platforms = platforms.unix;
maintainers = [ maintainers.romildo ];
};
}