mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
Merge pull request #239240 from leona-ya/keycloak-features
keycloak: allow enabling and disabling features
This commit is contained in:
commit
b326be5e38
@ -5,12 +5,18 @@
|
|||||||
, jre
|
, jre
|
||||||
, nixosTests
|
, nixosTests
|
||||||
, callPackage
|
, callPackage
|
||||||
|
|
||||||
, confFile ? null
|
, confFile ? null
|
||||||
, plugins ? [ ]
|
, plugins ? [ ]
|
||||||
|
, extraFeatures ? [ ]
|
||||||
|
, disabledFeatures ? [ ]
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
|
featuresSubcommand = ''
|
||||||
|
${lib.optionalString (extraFeatures != [ ]) "--features=${lib.concatStringsSep "," extraFeatures}"} \
|
||||||
|
${lib.optionalString (disabledFeatures != [ ]) "--features-disabled=${lib.concatStringsSep "," disabledFeatures}"}
|
||||||
|
'';
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
pname = "keycloak";
|
pname = "keycloak";
|
||||||
version = "22.0.1";
|
version = "22.0.1";
|
||||||
|
|
||||||
@ -44,7 +50,7 @@ stdenv.mkDerivation rec {
|
|||||||
patchShebangs bin/kc.sh
|
patchShebangs bin/kc.sh
|
||||||
export KC_HOME_DIR=$(pwd)
|
export KC_HOME_DIR=$(pwd)
|
||||||
export KC_CONF_DIR=$(pwd)/conf
|
export KC_CONF_DIR=$(pwd)/conf
|
||||||
bin/kc.sh build
|
bin/kc.sh build ${featuresSubcommand}
|
||||||
|
|
||||||
runHook postBuild
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user