···10{
11 meta.maintainers = [ lib.maintainers.quadradical ];
12 options.services.lk-jwt-service = {
13- enable = lib.mkEnableOption "Enable lk-jwt-service";
14 package = lib.mkPackageOption pkgs "lk-jwt-service" { };
1516 livekitUrl = lib.mkOption {
···28 Path to a file containing the credential mapping (`<keyname>: <secret>`) to access LiveKit.
2930 Example:
31- ```
32- lk-jwt-service: f6lQGaHtM5HfgZjIcec3cOCRfiDqIine4CpZZnqdT5cE
33- ```
3435 For more information, see <https://github.com/element-hq/lk-jwt-service#configuration>.
36 '';
···10{
11 meta.maintainers = [ lib.maintainers.quadradical ];
12 options.services.lk-jwt-service = {
13+ enable = lib.mkEnableOption "lk-jwt-service";
14 package = lib.mkPackageOption pkgs "lk-jwt-service" { };
1516 livekitUrl = lib.mkOption {
···28 Path to a file containing the credential mapping (`<keyname>: <secret>`) to access LiveKit.
2930 Example:
31+ `lk-jwt-service: f6lQGaHtM5HfgZjIcec3cOCRfiDqIine4CpZZnqdT5cE`
003233 For more information, see <https://github.com/element-hq/lk-jwt-service#configuration>.
34 '';
+4-5
nixos/modules/services/networking/livekit.nix
···12{
13 meta.maintainers = with lib.maintainers; [ quadradical ];
14 options.services.livekit = {
15- enable = lib.mkEnableOption "Enable the livekit server";
16 package = lib.mkPackageOption pkgs "livekit" { };
1718 keyFile = lib.mkOption {
···20 description = ''
21 LiveKit key file holding one or multiple application secrets. Use `livekit-server generate-keys` to generate a random key name and secret.
2223- The file should have the format `<keyname>: <secret>`. Example:
24- ```
25- lk-jwt-service: f6lQGaHtM5HfgZjIcec3cOCRfiDqIine4CpZZnqdT5cE
26- ```
2728 Individual key/secret pairs need to be passed to clients to connect to this instance.
29 '';
···12{
13 meta.maintainers = with lib.maintainers; [ quadradical ];
14 options.services.livekit = {
15+ enable = lib.mkEnableOption "the livekit server";
16 package = lib.mkPackageOption pkgs "livekit" { };
1718 keyFile = lib.mkOption {
···20 description = ''
21 LiveKit key file holding one or multiple application secrets. Use `livekit-server generate-keys` to generate a random key name and secret.
2223+ The file should have the format `<keyname>: <secret>`.
24+ Example:
25+ `lk-jwt-service: f6lQGaHtM5HfgZjIcec3cOCRfiDqIine4CpZZnqdT5cE`
02627 Individual key/secret pairs need to be passed to clients to connect to this instance.
28 '';
+14-9
pkgs/applications/misc/stork/default.nix
···4 fetchFromGitHub,
5 openssl,
6 pkg-config,
07}:
89-rustPlatform.buildRustPackage rec {
10 pname = "stork";
11 version = "1.6.0";
1213 src = fetchFromGitHub {
14 owner = "jameslittle230";
15 repo = "stork";
16- rev = "v${version}";
17- sha256 = "sha256-qGcEhoytkCkcaA5eHc8GVgWvbOIyrO6BCp+EHva6wTw=";
18 };
1920- useFetchCargoVendor = true;
21- cargoHash = "sha256-nN2aNNBq2YDOY9H9682hvwrlI5WTg7s1EPi68UuBTBM=";
02223 checkFlags = [
24 # Fails for 1.6.0, but binary works fine
···2930 buildInputs = [ openssl ];
3132- meta = with lib; {
00033 description = "Impossibly fast web search, made for static sites";
34 homepage = "https://github.com/jameslittle230/stork";
35- license = with licenses; [ asl20 ];
36- maintainers = with maintainers; [ chuahou ];
37 mainProgram = "stork";
38 };
39-}
···4 fetchFromGitHub,
5 openssl,
6 pkg-config,
7+ versionCheckHook,
8}:
910+rustPlatform.buildRustPackage (finalAttrs: {
11 pname = "stork";
12 version = "1.6.0";
1314 src = fetchFromGitHub {
15 owner = "jameslittle230";
16 repo = "stork";
17+ tag = "v${finalAttrs.version}";
18+ hash = "sha256-qGcEhoytkCkcaA5eHc8GVgWvbOIyrO6BCp+EHva6wTw=";
19 };
2021+ cargoPatches = [ ./update-wasm-bindgen.patch ];
22+23+ cargoHash = "sha256-d6PLrs/n9riQ9oQTWn+6Ec1E5JhJZ7akDg8/UB21GzI=";
2425 checkFlags = [
26 # Fails for 1.6.0, but binary works fine
···3132 buildInputs = [ openssl ];
3334+ doInstallCheck = true;
35+ nativeInstallCheckInputs = [ versionCheckHook ];
36+37+ meta = {
38 description = "Impossibly fast web search, made for static sites";
39 homepage = "https://github.com/jameslittle230/stork";
40+ license = lib.licenses.asl20;
41+ maintainers = with lib.maintainers; [ chuahou ];
42 mainProgram = "stork";
43 };
44+})
···1920 skopeoTest = skopeo.override { buildGoModule = buildGo123Module; };
2122- goarch =
23- platform:
24- {
25- "aarch64" = "arm64";
26- "arm" = "arm";
27- "armv5tel" = "arm";
28- "armv6l" = "arm";
29- "armv7l" = "arm";
30- "i686" = "386";
31- "loongarch64" = "loong64";
32- "mips" = "mips";
33- "mips64el" = "mips64le";
34- "mipsel" = "mipsle";
35- "powerpc64" = "ppc64";
36- "powerpc64le" = "ppc64le";
37- "riscv64" = "riscv64";
38- "s390x" = "s390x";
39- "x86_64" = "amd64";
40- "wasm32" = "wasm";
41- }
42- .${platform.parsed.cpu.name} or (throw "Unsupported system: ${platform.parsed.cpu.name}");
43-44 # We need a target compiler which is still runnable at build time,
45 # to handle the cross-building case where build != host == target
46 targetCC = pkgsBuildTarget.targetPackages.stdenv.cc;
···88 ./go_no_vendor_checks-1.23.patch
89 ];
9091- GOOS = if stdenv.targetPlatform.isWasi then "wasip1" else stdenv.targetPlatform.parsed.kernel.name;
92- GOARCH = goarch stdenv.targetPlatform;
93 # GOHOSTOS/GOHOSTARCH must match the building system, not the host system.
94 # Go will nevertheless build a for host system that we will copy over in
95 # the install phase.
96- GOHOSTOS = stdenv.buildPlatform.parsed.kernel.name;
97- GOHOSTARCH = goarch stdenv.buildPlatform;
9899 # {CC,CXX}_FOR_TARGET must be only set for cross compilation case as go expect those
100 # to be different from CC/CXX
101 CC_FOR_TARGET = if isCross then "${targetCC}/bin/${targetCC.targetPrefix}cc" else null;
102 CXX_FOR_TARGET = if isCross then "${targetCC}/bin/${targetCC.targetPrefix}c++" else null;
103104- GOARM = toString (
105- lib.intersectLists [ (stdenv.hostPlatform.parsed.cpu.version or "") ] [ "5" "6" "7" ]
106- );
107 GO386 = "softfloat"; # from Arch: don't assume sse2 on i686
108 # Wasi does not support CGO
109 CGO_ENABLED = if stdenv.targetPlatform.isWasi then 0 else 1;
···1920 skopeoTest = skopeo.override { buildGoModule = buildGo123Module; };
21000000000000000000000022 # We need a target compiler which is still runnable at build time,
23 # to handle the cross-building case where build != host == target
24 targetCC = pkgsBuildTarget.targetPackages.stdenv.cc;
···66 ./go_no_vendor_checks-1.23.patch
67 ];
6869+ inherit (stdenv.targetPlatform.go) GOOS GOARCH GOARM;
070 # GOHOSTOS/GOHOSTARCH must match the building system, not the host system.
71 # Go will nevertheless build a for host system that we will copy over in
72 # the install phase.
73+ GOHOSTOS = stdenv.buildPlatform.go.GOOS;
74+ GOHOSTARCH = stdenv.buildPlatform.go.GOARCH;
7576 # {CC,CXX}_FOR_TARGET must be only set for cross compilation case as go expect those
77 # to be different from CC/CXX
78 CC_FOR_TARGET = if isCross then "${targetCC}/bin/${targetCC.targetPrefix}cc" else null;
79 CXX_FOR_TARGET = if isCross then "${targetCC}/bin/${targetCC.targetPrefix}c++" else null;
8000081 GO386 = "softfloat"; # from Arch: don't assume sse2 on i686
82 # Wasi does not support CGO
83 CGO_ENABLED = if stdenv.targetPlatform.isWasi then 0 else 1;
+3-29
pkgs/development/compilers/go/1.24.nix
···1920 skopeoTest = skopeo.override { buildGoModule = buildGo124Module; };
2122- goarch =
23- platform:
24- {
25- "aarch64" = "arm64";
26- "arm" = "arm";
27- "armv5tel" = "arm";
28- "armv6l" = "arm";
29- "armv7l" = "arm";
30- "i686" = "386";
31- "loongarch64" = "loong64";
32- "mips" = "mips";
33- "mips64el" = "mips64le";
34- "mipsel" = "mipsle";
35- "powerpc64" = "ppc64";
36- "powerpc64le" = "ppc64le";
37- "riscv64" = "riscv64";
38- "s390x" = "s390x";
39- "x86_64" = "amd64";
40- "wasm32" = "wasm";
41- }
42- .${platform.parsed.cpu.name} or (throw "Unsupported system: ${platform.parsed.cpu.name}");
43-44 # We need a target compiler which is still runnable at build time,
45 # to handle the cross-building case where build != host == target
46 targetCC = pkgsBuildTarget.targetPackages.stdenv.cc;
···88 ./go_no_vendor_checks-1.23.patch
89 ];
9091- GOOS = if stdenv.targetPlatform.isWasi then "wasip1" else stdenv.targetPlatform.parsed.kernel.name;
92- GOARCH = goarch stdenv.targetPlatform;
93 # GOHOSTOS/GOHOSTARCH must match the building system, not the host system.
94 # Go will nevertheless build a for host system that we will copy over in
95 # the install phase.
96- GOHOSTOS = stdenv.buildPlatform.parsed.kernel.name;
97- GOHOSTARCH = goarch stdenv.buildPlatform;
9899 # {CC,CXX}_FOR_TARGET must be only set for cross compilation case as go expect those
100 # to be different from CC/CXX
101 CC_FOR_TARGET = if isCross then "${targetCC}/bin/${targetCC.targetPrefix}cc" else null;
102 CXX_FOR_TARGET = if isCross then "${targetCC}/bin/${targetCC.targetPrefix}c++" else null;
103104- GOARM = toString (
105- lib.intersectLists [ (stdenv.hostPlatform.parsed.cpu.version or "") ] [ "5" "6" "7" ]
106- );
107 GO386 = "softfloat"; # from Arch: don't assume sse2 on i686
108 # Wasi does not support CGO
109 CGO_ENABLED = if stdenv.targetPlatform.isWasi then 0 else 1;
···1920 skopeoTest = skopeo.override { buildGoModule = buildGo124Module; };
21000000000000000000000022 # We need a target compiler which is still runnable at build time,
23 # to handle the cross-building case where build != host == target
24 targetCC = pkgsBuildTarget.targetPackages.stdenv.cc;
···66 ./go_no_vendor_checks-1.23.patch
67 ];
6869+ inherit (stdenv.targetPlatform.go) GOOS GOARCH GOARM;
070 # GOHOSTOS/GOHOSTARCH must match the building system, not the host system.
71 # Go will nevertheless build a for host system that we will copy over in
72 # the install phase.
73+ GOHOSTOS = stdenv.buildPlatform.go.GOOS;
74+ GOHOSTARCH = stdenv.buildPlatform.go.GOARCH;
7576 # {CC,CXX}_FOR_TARGET must be only set for cross compilation case as go expect those
77 # to be different from CC/CXX
78 CC_FOR_TARGET = if isCross then "${targetCC}/bin/${targetCC.targetPrefix}cc" else null;
79 CXX_FOR_TARGET = if isCross then "${targetCC}/bin/${targetCC.targetPrefix}c++" else null;
8000081 GO386 = "softfloat"; # from Arch: don't assume sse2 on i686
82 # Wasi does not support CGO
83 CGO_ENABLED = if stdenv.targetPlatform.isWasi then 0 else 1;