mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 11:45:45 +03:00
kanidm: fix running on Linux
This commit is contained in:
parent
bc649ee47c
commit
29c9fa86b5
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ rustPlatform.buildRustPackage rec {
|
||||||
inherit hash;
|
inherit hash;
|
||||||
};
|
};
|
||||||
|
|
||||||
KANIDM_BUILD_PROFILE = "release_nixpgs_${arch}";
|
KANIDM_BUILD_PROFILE = "release_nixpkgs_${arch}";
|
||||||
|
|
||||||
patches = lib.optionals enableSecretProvisioning [
|
patches = lib.optionals enableSecretProvisioning [
|
||||||
"${patchDir}/oauth2-basic-secret-modify.patch"
|
"${patchDir}/oauth2-basic-secret-modify.patch"
|
||||||
|
@ -59,7 +59,7 @@ rustPlatform.buildRustPackage rec {
|
||||||
postPatch =
|
postPatch =
|
||||||
let
|
let
|
||||||
format = (formats.toml { }).generate "${KANIDM_BUILD_PROFILE}.toml";
|
format = (formats.toml { }).generate "${KANIDM_BUILD_PROFILE}.toml";
|
||||||
socket_path = if stdenv.hostPlatform.isLinux then "/run/kanidm/sock" else "/var/run/kanidm.socket";
|
socket_path = if stdenv.hostPlatform.isLinux then "/run/kanidmd/sock" else "/var/run/kanidm.socket";
|
||||||
profile =
|
profile =
|
||||||
{
|
{
|
||||||
cpu_flags = if stdenv.hostPlatform.isx86_64 then "x86_64_legacy" else "none";
|
cpu_flags = if stdenv.hostPlatform.isx86_64 then "x86_64_legacy" else "none";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue