nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 2f969e3d0180e0161b7058190a7bccfaba0a79d7
parent 88f626d98010b05cb7910f150ec592897ff3c2d5
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Tue, 14 Apr 2020 22:28:11 +0300

Refactoring

Diffstat:
Mpkgs/applications/gpxlab/default.nix | 9+++++----
Mpkgs/applications/gpxsee/default.nix | 9+++++----
Mpkgs/applications/redict/default.nix | 5+++--
3 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/pkgs/applications/gpxlab/default.nix b/pkgs/applications/gpxlab/default.nix @@ -1,14 +1,15 @@ -{ stdenv, mkDerivation, lib, qmake, qtbase, qttools, qttranslations, sources }: +{ stdenv, mkDerivation, lib, qmake, qtbase, qttools, qttranslations, sources +, withI18n ? false }: mkDerivation rec { pname = "gpxlab"; version = lib.substring 0 7 src.rev; src = sources.gpxlab; - nativeBuildInputs = [ qmake qttools ]; - buildInputs = [ qtbase qttranslations ]; + nativeBuildInputs = [ qmake ] ++ (lib.optional withI18n qttools); + buildInputs = [ qtbase ]; - preConfigure = '' + preConfigure = lib.optionalString withI18n '' lrelease GPXLab/locale/*.ts ''; diff --git a/pkgs/applications/gpxsee/default.nix b/pkgs/applications/gpxsee/default.nix @@ -1,14 +1,15 @@ -{ stdenv, mkDerivation, lib, qmake, qtbase, qttools, qttranslations, sources }: +{ stdenv, mkDerivation, lib, qmake, qtbase, qttools, qttranslations, sources +, withI18n ? true }: mkDerivation rec { pname = "gpxsee"; version = lib.substring 0 7 src.rev; src = sources.gpxsee; - nativeBuildInputs = [ qmake qttools ]; - buildInputs = [ qtbase qttranslations ]; + nativeBuildInputs = [ qmake ] ++ (lib.optional withI18n qttools); + buildInputs = [ qtbase ]; - preConfigure = '' + preConfigure = lib.optionalString withI18n '' lrelease lang/*.ts ''; diff --git a/pkgs/applications/redict/default.nix b/pkgs/applications/redict/default.nix @@ -11,6 +11,7 @@ , libXext , libXtst , sources +, withI18n ? true }: mkDerivation rec { @@ -18,11 +19,11 @@ mkDerivation rec { version = lib.substring 0 7 src.rev; src = sources.redict; - nativeBuildInputs = [ qmake qttools pkgconfig ]; + nativeBuildInputs = [ qmake pkgconfig ] ++ (lib.optional withI18n qttools); buildInputs = [ qtbase qtmultimedia qtsvg qtx11extras libX11 libXext libXtst ]; - preConfigure = '' + preConfigure = lib.optionalString withI18n '' lupdate redict.pro lrelease redict.pro '';