diff options
author | José Romildo Malaquias <malaquias@gmail.com> | 2019-05-24 17:22:21 -0300 |
---|---|---|
committer | José Romildo Malaquias <malaquias@gmail.com> | 2019-05-24 17:22:21 -0300 |
commit | c345f347d146f698698bac2501f64c5ca541c60a (patch) | |
tree | 9476d9f7ee7912d757f1ee9b7bd80bbfa69c8731 /pkgs/desktops/lumina | |
parent | 1a8005393dccbc1163fd5872da4cd1dece1b2a70 (diff) |
lumina.lumina-calculator: init at 2019-04-27
Diffstat (limited to 'pkgs/desktops/lumina')
-rw-r--r-- | pkgs/desktops/lumina/default.nix | 2 | ||||
-rw-r--r-- | pkgs/desktops/lumina/lumina-calculator/default.nix | 32 |
2 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/desktops/lumina/default.nix b/pkgs/desktops/lumina/default.nix index d1737930b4cd..9bdf221c96de 100644 --- a/pkgs/desktops/lumina/default.nix +++ b/pkgs/desktops/lumina/default.nix @@ -4,6 +4,7 @@ let packages = self: with self; { lumina = callPackage ./lumina { }; + lumina-calculator = callPackage ./lumina-calculator { }; preRequisitePackages = [ pkgs.fluxbox @@ -15,6 +16,7 @@ let corePackages = [ lumina + lumina-calculator ]; }; diff --git a/pkgs/desktops/lumina/lumina-calculator/default.nix b/pkgs/desktops/lumina/lumina-calculator/default.nix new file mode 100644 index 000000000000..70e0f2e3511c --- /dev/null +++ b/pkgs/desktops/lumina/lumina-calculator/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchFromGitHub, qmake, qtbase, qttools }: + +stdenv.mkDerivation rec { + pname = "lumina-calculator"; + version = "2019-04-27"; + + src = fetchFromGitHub { + owner = "lumina-desktop"; + repo = pname; + rev = "ccb792fc713aa7163fffd37fc20c83ffe9ca7523"; + sha256 = "0cdyz94znycsc3qxg5bmg51bwms7586d4ja1bsmj8cb9pd3lv980"; + }; + + sourceRoot = "source/src-qt5"; + + nativeBuildInputs = [ qmake qttools ]; + + buildInputs = [ qtbase ]; + + qmakeFlags = [ + "CONFIG+=WITH_I18N" + "LRELEASE=${stdenv.lib.getDev qttools}/bin/lrelease" + ]; + + meta = with stdenv.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 ]; + }; +} |