mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 12:59:04 +02:00
tsm-client: set mainProgram
The TSM command line client `dsmc` should be the program that is usually invoked from this package. However, if a user explicitely asks for the package with GUI support (with `enableGui`, available in the package `tsm-client-withGui`), we set the mainProgram to the graphical application `dsmj` as that's likely what the user is looking for.
This commit is contained in:
parent
7934926b2e
commit
8fa6f90ad6
|
@ -62,6 +62,7 @@ let
|
||||||
homepage = "https://www.ibm.com/products/data-protection-and-recovery";
|
homepage = "https://www.ibm.com/products/data-protection-and-recovery";
|
||||||
downloadPage = "https://www.ibm.com/support/pages/ibm-spectrum-protect-downloads-latest-fix-packs-and-interim-fixes";
|
downloadPage = "https://www.ibm.com/support/pages/ibm-spectrum-protect-downloads-latest-fix-packs-and-interim-fixes";
|
||||||
platforms = [ "x86_64-linux" ];
|
platforms = [ "x86_64-linux" ];
|
||||||
|
mainProgram = "dsmc";
|
||||||
license = lib.licenses.unfree;
|
license = lib.licenses.unfree;
|
||||||
maintainers = [ lib.maintainers.yarny ];
|
maintainers = [ lib.maintainers.yarny ];
|
||||||
description = "IBM Spectrum Protect (Tivoli Storage Manager) CLI and API";
|
description = "IBM Spectrum Protect (Tivoli Storage Manager) CLI and API";
|
||||||
|
@ -148,7 +149,9 @@ in
|
||||||
|
|
||||||
buildEnv {
|
buildEnv {
|
||||||
name = "tsm-client-${unwrapped.version}";
|
name = "tsm-client-${unwrapped.version}";
|
||||||
inherit meta;
|
meta = meta // lib.attrsets.optionalAttrs enableGui {
|
||||||
|
mainProgram = "dsmj";
|
||||||
|
};
|
||||||
passthru = { inherit unwrapped; };
|
passthru = { inherit unwrapped; };
|
||||||
paths = [ unwrapped ];
|
paths = [ unwrapped ];
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
Loading…
Reference in a new issue