jiebi/CodeConvo huggingface dataset:
Change:
Project description  Run gitlab pipelines locally as shell executor or docker executor.  Get rid of all those dev specific shell scripts and make files. Metadata homepage URL: source URL: license: mit platforms: macOS, Linux, Windows looked into nix packaging a little bit but i don't have bandwidth to add myself. however, i did read some things first before asking for help here: i will pay attention to whatever someone may solve for this request!
personal take but these projects are doomed to fail. Either install a true local gitlab or make it such that you spend a minimal amount of time in CI (and nix is great for that, just launch nix with eventually to get access to your secrets (or similar tools like ).
dude it's such a nightmare. i switched off github because sucks and i can't get this thing to even build a docker image inside a job i had no idea you could "install gitlab"... hmm that could be the solution
another way to debug gitlab jobs is to log into the running container so that you can run commands directly in it (either via netcat or you ssh into the gitlab-runner machine and into the container)

Discussion:
<ins> { buildNpmPackage , fetchFromGitHub , lib , nix-update-script }: buildNpmPackage rec { pname = "gitlab-ci-local"; version = "4.46.1"; src = fetchFromGitHub { owner = "firecow"; repo = "gitlab-ci-local"; rev = version; hash = "sha256-0NUmsbuzs004w9ETj4e4nO+sDvYHQh9SwJoRc3+r+j8="; }; npmDepsHash = "sha256-zCBNUKmLluVCDoPHuKy9KMKCGL8FqopFhKq7QCAUe4U="; postPatch = '' # remove cleanup which runs git commands substituteInPlace package.json  --replace-fail "npm run cleanup" "true" ''; passthru.updateScript = nix-update-script { }; meta = with lib;{ description = "Run gitlab pipelines locally as shell executor or docker executor"; longDescription = '' Tired of pushing to test your .gitlab-ci.yml? Run gitlab pipelines locally as shell executor or docker executor. Get rid of all those dev specific shell scripts and make files. ''; homepage = "https://github.com/firecow/gitlab-ci-local"; license = licenses.mit; maintainers = with maintainers; [ pineapplehunter ]; platforms = platforms.all; }; } </ins>
Change:
Attempting to install gives error: curl: (22) The requested URL returned error: 404 error: cannot download xp-pen-deco-01-v2-driver-3.2.3.- from any mirror Steps to reproduce the behavior: modify to add the named package or do "nix-shell -p " in terminal Package installs sucessfully. If applicable, add screenshots to help explain your problem. ! I could be wrong, but it seems that the download link for the xp pen tablet driver was changed by xp pen upstream, and the link used here is now invalid. <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. -- Please run and paste the result. `` system: host os: multi-user?: sandbox: version: channels(root): nixpkgs:

Discussion:
in stdenv.mkDerivation rec { pname = "xp-pen-deco-01-v2-driver"; <del> version = "3.2.3.230215-1"; </del> <ins> version = "3.4.9-231023"; </ins> src = fetchzip { <del> url = "https://download01.xp-pen.com/file/2023/03/XPPen-pentablet-${version}.x86_64.tar.gz"; </del> <ins> url = "https://www.xp-pen.com/download/file/id/1936/pid/440/ext/gz.html#.tar.gz"; </ins> name = "xp-pen-deco-01-v2-driver-${version}.tar.gz"; <del> sha256 = "sha256-CV4ZaGCFFcfy2J0O8leYgcyzFVwJQFQJsShOv9B7jfI="; </del> <ins> sha256 = "sha256-A/dv6DpelH0NHjlGj32tKv37S+9q3F8cYByiYlMuqLg="; </ins> }; nativeBuildInputs = [

runHook preInstall mkdir -p $out/{opt,bin} <del> cp -r App/usr/lib/pentablet/{pentablet,resource.rcc,conf} $out/opt chmod +x $out/opt/pentablet </del> <ins> cp -r App/usr/lib/pentablet/{PenTablet,resource.rcc,conf} $out/opt chmod +x $out/opt/PenTablet </ins> cp -r App/lib $out/lib <del> sed -i 's#usr/lib/pentablet#${dataDir}#g' $out/opt/pentablet </del> <ins> sed -i 's#usr/lib/pentablet#${dataDir}#g' $out/opt/PenTablet </ins> runHook postInstall ''; postFixup = '' <del> makeWrapper $out/opt/pentablet $out/bin/xp-pen-deco-01-v2-driver  </del> <ins> makeWrapper $out/opt/PenTablet $out/bin/xp-pen-deco-01-v2-driver  </ins> "''${qtWrapperArgs[@]}"  --run 'if [ "$EUID" -ne 0 ]; then echo "Please run as root."; exit 1; fi'  --run 'if [ ! -d /${dataDir} ]; then mkdir -p /${dataDir}; cp -r '$out'/opt/conf /${dataDir}; chmod u+w -R /${dataDir}; fi'
Change:
The error currently does not even elaborate which unit it's been inquiring about, and overall it looks like the test driver is failing, rather than the service being tested: One can see the same behaviour in e.g. This is far from a minimal example, but it works for me: after () until you observe the driver failing with (the error isn't deterministic) The test work or fail deterministically. Instead of in the driver, a message about the unit should be displayed If applicable, add screenshots to help explain your problem. Add any other context about the problem here. I suspect the systemctl might be running into this branch and then we're not seeing the message, because the driver only captures the stdout: I couldn't confirm though. The SLURM test: Recently edited : <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. --Please run and paste the result.
Possibly a better reproducer: try (or any ). When I run locally/outsdie the VM I observe . It fails pretty consistently inside the VM for me

Discussion:
""" def check_active(_: Any) -> bool: <del> info = self.get_unit_info(unit, user) state = info["ActiveState"] </del> <ins> state = self.get_unit_property(unit, "ActiveState", user) </ins> if state == "failed": raise Exception(f'unit "{unit}" reached state "{state}"')

if line_pattern.match(line) ) <ins> def get_unit_property( self, unit: str, property: str, user: Optional[str] = None, ) -> str: status, lines = self.systemctl( f'--no-pager show "{unit}" --property="{property}"', user, ) if status != 0: raise Exception( f'retrieving systemctl property "{property}" for unit "{unit}"' + ("" if user is None else f' under user "{user}"') + f" failed with exit code {status}" ) invalid_output_message = ( f'systemctl show --property "{property}" "{unit}"' f"produced invalid output: {lines}" ) line_pattern = re.compile(r"^([^=]+)=(.*)$") match = line_pattern.match(lines) assert match is not None, invalid_output_message assert match[1] == property, invalid_output_message return match[2] </ins> def systemctl(self, q: str, user: Optional[str] = None) -> Tuple[int, str]: """ Runs `systemctl` commands with optional support for
Change:
When attempting to run from the LibreOffice installation, I get the following error: I honestly have no idea what this tool is supposed to do, but if it is included in the package it should run. Install either or and then run System: NixOS: 17.03.899. (Gorilla) Nix version: 1.11.8 Nixpkgs version: "17.09pre108553." Sandboxing enabled: Yes (Hmmm.... I see that my NixOS version and Nixpkgs version don't match.... I'll have to look into that.)
The Nix expression for libreoffice wraps the binaries so they appear in /nix/store/-libreoffice-/bin, making them available on the PATH. The binaries are actually located at /nix/store/-libreoffice-/lib/libreoffice/program. The problem is the Nix expression wraps spadmin which does not exist in the program directory. See I don't know whether spadmin is supposed to be there or not, but that's what's going on. What I find interesting is that the symbolic link to the binary doesn't appear to be broken:

Discussion:
mkdir -p "$out/share/gsettings-schemas/collected-for-libreoffice/glib-2.0/schemas/" <del> for a in sbase scalc sdraw smath swriter spadmin simpress soffice; do </del> <ins> for a in sbase scalc sdraw smath swriter simpress soffice; do </ins> ln -s $out/lib/libreoffice/program/$a $out/bin/$a wrapProgram "$out/bin/$a"  --prefix XDG_DATA_DIRS :
Change:
Package name: detox Latest released version: 1.4.5 <!-- Search your package here: --- Current version on the unstable channel: 1.2.0 Current version on the stable/release channel: 1.2.0 <!-- Type the name of your package and try to find an open pull request for the package If you find an open pull request, you can review it! There's a high chance that you'll have the new version right away while helping the community! --- Notify maintainers <!-- If the result shows no maintainers, tag the person that last updated the package. --Note for maintainers: Please tag this issue in your PR. Detox has been on github for a few years now:
are you able to test

Discussion:
<del> {lib, stdenv, fetchurl, flex}: </del> <ins> { lib, stdenv, fetchFromGitHub, flex, autoreconfHook }: </ins> stdenv.mkDerivation rec { pname = "detox"; <del> version = "1.2.0"; </del> <ins> version = "1.4.5"; </ins> <del> src = fetchurl { url = "mirror://sourceforge/detox/${version}/detox-${version}.tar.gz"; sha256 = "02cfkf3yhw64xg8mksln8w24gdwgm2x9g3vps7gn6jbjbfd8mh45"; </del> <ins> src = fetchFromGitHub { owner = "dharple"; repo = pname; rev = "v${version}"; hash = "sha256-cTuK5EIimRVZ1nfuTa1ds6xrawYIAbwNNIkNONd9y4Q="; </ins> }; <del> buildInputs = [flex]; </del> <ins> nativeBuildInputs = [ flex autoreconfHook ]; </ins> hardeningDisable = [ "format" ]; <del> postInstall = '' install -m644 safe.tbl $out/share/detox/ ''; </del> meta = with lib; { <del> homepage = "https://detox.sourceforge.net/"; </del> <ins> homepage = "https://github.com/dharple/detox"; </ins> description = "Utility designed to clean up filenames"; <ins> changelog = "https://github.com/dharple/detox/blob/v${version}/CHANGELOG.md"; </ins> longDescription = '' Detox is a utility designed to clean up filenames. It replaces difficult to work with characters, such as spaces, with standard

license = licenses.bsd3; platforms = platforms.linux; maintainers = with maintainers; [ ]; <ins> mainProgram = "detox"; </ins> }; }
Change:
Installing package fails when downloading IntelliJ tar System: Nix version: Nixpkgs version: Sandboxing enabled:
It's already 2017.4 in the repo. But yeah, 2017.1 doesn't work because of 403 on their site
The policy is to keep two last minor versions of each major version, which means that we need to update the expression faster :).

Discussion:
<ins> {stdenv, fetchurl, yacc, flex, pkgconfig, glib, xz}: stdenv.mkDerivation rec { version = "0.15.2"; name = "vala-${version}"; src = fetchurl { url = "mirror://gnome/sources/vala/0.15/${name}.tar.xz"; sha256 = "0g71zq6dpqrw2f40wfzdf18fdw41ymr17laqniy2kr622hkxdi8w"; }; buildNativeInputs = [ yacc flex pkgconfig xz ]; buildInputs = [ glib ]; meta = { description = "Compiler for the GObject type system"; homepage = "http://live.gnome.org/Vala"; license = "free-copyleft"; platforms = stdenv.lib.platforms.all; maintainers = [ stdenv.lib.maintainers.antono ]; }; } </ins>

<ins> {stdenv, fetchurl, yacc, flex, pkgconfig, glib, xz}: stdenv.mkDerivation rec { version = "0.16.1"; name = "vala-${version}"; src = fetchurl { url = "mirror://gnome/sources/vala/0.16/${name}.tar.xz"; sha256 = "1n708n9ixyy9qrzyv1wf4ybvcclx43ib9ki028wwpvkz6kv8zqlb"; }; buildNativeInputs = [ yacc flex pkgconfig xz ]; buildInputs = [ glib ]; meta = { description = "Compiler for the GObject type system"; homepage = "http://live.gnome.org/Vala"; license = "free-copyleft"; platforms = stdenv.lib.platforms.all; maintainers = [ stdenv.lib.maintainers.antono ]; }; } </ins>

{stdenv, fetchurl, yacc, flex, pkgconfig, glib, xz}: stdenv.mkDerivation rec { <del> name = "vala-0.14.2"; </del> <ins> version = "0.17.2"; name = "vala-${version}"; </ins> src = fetchurl { <del> url = mirror://gnome/sources/vala/0.14/vala-0.14.2.tar.xz; sha256 = "1l5kllw9vpwv24lzv9fp64l3sad46wpxgvsgryrwlrjg91w6jzl0"; </del> <ins> url = "mirror://gnome/sources/vala/0.17/${name}.tar.xz"; sha256 = "09i2s0dwmrk147ind2dx7nq845g12fp6fsjqrphhrr0dbi0zzgh3"; </ins> }; buildNativeInputs = [ yacc flex pkgconfig xz ];

meta = { description = "Compiler for the GObject type system"; homepage = "http://live.gnome.org/Vala"; <ins> license = "free-copyleft"; platforms = stdenv.lib.platforms.all; maintainers = [ stdenv.lib.maintainers.antono ]; </ins> }; }

urweb = callPackage ../development/compilers/urweb { }; <del> vala = callPackage ../development/compilers/vala { }; </del> <ins> vala = vala17; vala15 = callPackage ../development/compilers/vala/15.2.nix { }; vala16 = callPackage ../development/compilers/vala/16.1.nix { }; vala17 = callPackage ../development/compilers/vala/default.nix { }; </ins> visualcpp = callPackage ../development/compilers/visual-c++ { };
Change:
gitmoji broken. Steps to reproduce the behavior: <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. --~
I'm not a gitmoji-cli maintainer. Buils fine on master. There's a reason we ask you to run .
Sorry to disturb you. I copy wrong name :cry:
Does help?
Still cannot:
I think be packaged to NixOS to make gitmoji work.
No, the dependency is already installed: exists.

Discussion:
, nodejs , prefetch-yarn-deps , yarn <ins> , testers </ins> }: stdenv.mkDerivation (finalAttrs: {

yarn --offline --production install mkdir -p "$out/lib/node_modules/gitmoji-cli" <del> cp -r lib node_modules "$out/lib/node_modules/gitmoji-cli" </del> <ins> cp -r lib node_modules package.json "$out/lib/node_modules/gitmoji-cli" </ins> makeWrapper "${nodejs}/bin/node" "$out/bin/gitmoji"  --add-flags "$out/lib/node_modules/gitmoji-cli/lib/cli.js"

runHook postInstall ''; <ins> passthru.tests = { version = testers.testVersion { package = finalAttrs.finalPackage; }; }; </ins> meta = { description = "Gitmoji client for using emojis on commit messages"; homepage = "https://github.com/carloscuesta/gitmoji-cli";
Change:
I use hdajackretask from alsa-tools to reasign my laptop speakers to a certain pin layout. (I need to do this, because those speakers are not used at all by default, in this 4 speaker layout) In order to do this, hdajackretask needs fuser to perform this task. It seems not to be a dependency. Steps to reproduce the behavior: alsa-tools hdajackretask as root this setup, see the tick in the box on the top, then click on apply ! fuser is installed Please run and paste the result.
Note: fuser is part of psmisc and installing it solved this issue. Please add psmisc to alsa-tools as dependency.

Discussion:
, fltk13 , gtk2 , gtk3 <ins> , makeWrapper </ins> , pkg-config <ins> , psmisc </ins> }: stdenv.mkDerivation (finalAttrs: {

}; nativeBuildInputs = [ <ins> makeWrapper </ins> pkg-config ];

fltk13 gtk2 gtk3 <ins> psmisc </ins> ]; env.TOOLSET = lib.concatStringsSep " " [

runHook postInstall ''; <ins> fixupPhase = '' runHook preFixup wrapProgram $out/bin/hdajackretask  --prefix PATH : ${lib.makeBinPath [ psmisc ]} runHook postFixup ''; </ins> meta = { homepage = "http://www.alsa-project.org/"; description = "ALSA Tools";
Change:
Package name: OpenEMS Latest released version: 0.0.36 <!-- Search your package here: --- Current version on the unstable channel: 2020-02-15 Current version on the stable/release channel: 2020-02-15 <!-- Type the name of your package and try to find an open pull request for the package If you find an open pull request, you can review it! There's a high chance that you'll have the new version right away while helping the community! --- Notify maintainers <!-- If the result shows no maintainers, tag the person that last updated the package. -- Note for maintainers: Please tag this issue in your PR.

Discussion:
stdenv.mkDerivation rec { pname = "csxcad"; <del> version = "unstable-2022-05-18"; </del> <ins> version = "0.6.3"; </ins> src = fetchFromGitHub { owner = "thliebig"; repo = "CSXCAD"; <del> rev = "cd9decb4d9cebe3c8bf115e2c0ee73f730f22da1"; sha256 = "1604amhvp7dm8ych7gwzxwawqvb9hpjglk5ffd4qm0y3k6r89arn"; </del> <ins> rev = "v${version}"; sha256 = "sha256-SSV5ulx3rCJg99I/oOQbqe+gOSs+BfcCo6UkWHVhnSs="; </ins> }; patches = [./searchPath.patch ];

, hyp2mat }: <del> stdenv.mkDerivation { </del> <ins> stdenv.mkDerivation rec { </ins> pname = "openems"; <del> version = "unstable-2020-02-15"; </del> <ins> version = "0.0.36"; </ins> src = fetchFromGitHub { owner = "thliebig"; repo = "openEMS"; <del> rev = "ba793ac84e2f78f254d6d690bb5a4c626326bbfd"; sha256 = "1dca6b6ccy771irxzsj075zvpa3dlzv4mjb8xyg9d889dqlgyl45"; </del> <ins> rev = "v${version}"; sha256 = "sha256-wdH+Zw7G2ZigzBMX8p3GKdFVx/AhbTNL+P3w+YjI/dc="; </ins> }; nativeBuildInputs = [

buildPythonPackage rec { pname = "python-csxcad"; <del> version = "unstable-2020-02-18"; </del> <ins> version = csxcad.version; </ins> <del> src = fetchFromGitHub { owner = "thliebig"; repo = "CSXCAD"; rev = "ef6e40931dbd80e0959f37c8e9614c437bf7e518"; sha256 = "072s765jyzpdq8qqysdy0dld17m6sr9zfcs0ip2zk8c4imxaysnb"; }; </del> <ins> src = csxcad.src; </ins> sourceRoot = "${src.name}/python";

buildPythonPackage rec { pname = "python-openems"; <del> version = "unstable-2020-02-15"; </del> <ins> version = openems.version; </ins> <del> src = fetchFromGitHub { owner = "thliebig"; repo = "openEMS"; rev = "ba793ac84e2f78f254d6d690bb5a4c626326bbfd"; sha256 = "1dca6b6ccy771irxzsj075zvpa3dlzv4mjb8xyg9d889dqlgyl45"; }; </del> <ins> src = openems.src; </ins> sourceRoot = "${src.name}/python";
Change:
I wonder why the bot did not notice the update. Package name: soft-serve Latest released version: 0.7.1 <!-- Search your package here: --- Current version on the unstable channel: 0.6.2 Current version on the stable/release channel: Not packaged <!-- Type the name of your package and try to find an open pull request for the package If you find an open pull request, you can review it! There's a high chance that you'll have the new version right away while helping the community! --- Notify maintainers <!-- If the result shows no maintainers, tag the person that last updated the package. --Note for maintainers: Please tag this issue in your PR.

Discussion:
buildGoModule rec { pname = "soft-serve"; <del> version = "0.6.2"; </del> <ins> version = "0.7.1"; </ins> src = fetchFromGitHub { owner = "charmbracelet"; repo = "soft-serve"; rev = "v${version}"; <del> hash = "sha256-gmgIuQk+8MRkuFZaJq82hHNdUMSqrylwgk6vi/Q0OQ0="; </del> <ins> hash = "sha256-PY/BHfuDRHXpzyUawzZhDr1m0c1tWqawW7GP9muhYAs="; </ins> }; <del> vendorHash = "sha256-7lzdngj6xBpEe2nZdPW1GLbarPBdCHMnf+Dyxuq2Ikw="; </del> <ins> vendorHash = "sha256-jtEiikjEOThTSrd+UIEInxQmt2z5YVyksuTC17VmdkA="; </ins> doCheck = false;
Change:
Package name: atlas Latest released version: 0.15.0 <!-- Search your package here: --- Current version on the unstable channel: 0.14.1 Current version on the stable/release channel: Not packaged <!-- Type the name of your package and try to find an open pull request for the package If you find an open pull request, you can review it! There's a high chance that you'll have the new version right away while helping the community! --- Notify maintainers <!-- If the result shows no maintainers, tag the person that last updated the package. --Note for maintainers: Please tag this issue in your PR.
I've made some progress on the updating the package with the new dependencies. Currently, I've encountered an issue where it can't find postgres.h. I'm sure it's something simple I'm missing, and I don't have the time right now. So, I thought I would share what I got so far. (:
Yup I'm stuck there as well. I think the issue has to do with this change in atlas: cmd/internal/sqlparse/pgparse: move to pgquery () I was able to find this from discourse: Trying the solution mentioned in the discourse leads to a different error and the runVend flag does not work either.
For those who need cloud support, look at the derivation in this comment:

Discussion:
<del> { lib, buildGoModule, fetchFromGitHub, installShellFiles }: </del> <ins> { lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, atlas }: </ins> buildGoModule rec { pname = "atlas"; <del> version = "0.14.1"; </del> <ins> version = "0.15.0"; </ins> src = fetchFromGitHub { owner = "ariga"; repo = "atlas"; rev = "v${version}"; <del> hash = "sha256-dOqL/9sJUbaHqF3N5PEL7f6LxQQWNL0FvaH5BxQp4Xg="; </del> <ins> hash = "sha256-qEui+Y7auNFJwLSUT90jJH7IPgNW06phbJel9y3C1bk="; </ins> }; modRoot = "cmd/atlas"; <del> vendorHash = "sha256-1Hhl2TzJWWXk4du9nbJTPXdYuss4TWfUIOw2DaAJQis="; </del> <ins> proxyVendor = true; vendorHash = "sha256-BJB+ZwrfZsYlyVX0G3qNQW8KexxMmc1Y9m2TRbOX6Tc="; </ins> nativeBuildInputs = [ installShellFiles ]; <del> env.GOWORK = "off"; </del> ldflags = [ "-s" "-w" "-X ariga.io/atlas/cmd/atlas/internal/cmdapi.version=v${version}" ]; subPackages = [ "." ];

--zsh <($out/bin/atlas completion zsh) ''; <ins> passthru.tests.version = testers.testVersion { package = atlas; command = "atlas version"; version = "v${version}"; }; </ins> meta = with lib; { description = "A modern tool for managing database schemas"; homepage = "https://atlasgo.io/";
Change:
Hello, Recently started using on my homelab server, and when running it from the commandline, with my own supplied config file, works perfectly, but then when trying and setting to true, the setting is not reflected in the file that is generated in the derivaton, and passed to the service at startup. If you look at the attribute, it doesn't seem like is mentioned at all. This is the code I used to enable . Tunnel is reported in the cloudflare dashboard, but when looking at logs when trying to access a private network, it explicitly says that warp routing is not enabled. Steps to reproduce the behavior: cloudflared, and enable the nix store for the generated file that is created by the derivation that the yaml does not include any setting For to be included in the service configuration. If applicable, add screenshots to help explain your problem. Add any other context about the problem here. Please run and paste the result.

Discussion:
ingressesSet = filterIngressSet tunnel.ingress; ingressesStr = filterIngressStr tunnel.ingress; <del> fullConfig = { </del> <ins> fullConfig = filterConfig { </ins> tunnel = name; "credentials-file" = tunnel.credentialsFile; <ins> warp-routing = filterConfig tunnel.warp-routing; originRequest = filterConfig tunnel.originRequest; </ins> ingress = (map (key: {

(attrNames ingressesStr)) ++ [{ service = tunnel.default; }]; }; mkConfigFile = pkgs.writeText "cloudflared.yml" (builtins.toJSON fullConfig); in nameValuePair "cloudflared-tunnel-${name}" ({

}; }; <del> meta.maintainers = with maintainers; [ bbigras ]; </del> <ins> meta.maintainers = with maintainers; [ bbigras anpin ]; </ins> }
Change:
Keycloak offers the option to configure either the or configuration setting. The current keycloak module doesn't support the option due to the way the config file is generated. Steps to reproduce the behavior: a keycloak service with only and not . a system with this service and get Be able to configure either or as a setting. (maintainer of keycloak module: ) Please run and paste the result.
should resolve this. Please try it out.
Thank you for the quick handling of the issue I'll try to do it at work the day after tomorrow
Has been tested and works.

Discussion:
maintainers catAttrs collect <del> splitString </del> hasPrefix ;

}; hostname = mkOption { <del> type = str; </del> <ins> type = nullOr str; default = null; </ins> example = "keycloak.example.com"; description = lib.mdDoc '' The hostname part of the public URL used as base for

keycloakConfig = lib.generators.toKeyValue { mkKeyValue = lib.flip lib.generators.mkKeyValueDefault "=" { <del> mkValueString = v: with builtins; </del> <ins> mkValueString = v: </ins> if isInt v then toString v else if isString v then v else if true == v then "true"

assertion = createLocalPostgreSQL -> config.services.postgresql.settings.standard_conforming_strings or true; message = "Setting up a local PostgreSQL db for Keycloak requires `standard_conforming_strings` turned on to work reliably"; } <ins> { assertion = cfg.settings.hostname != null || cfg.settings.hostname-url or null != null; message = "Setting the Keycloak hostname is required, see `services.keycloak.settings.hostname`"; } { assertion = !(cfg.settings.hostname != null && cfg.settings.hostname-url or null != null); message = "`services.keycloak.settings.hostname` and `services.keycloak.settings.hostname-url` are mutually exclusive"; } </ins> ]; environment.systemPackages = [ keycloakBuild ];