add sliding sync #305
6 changed files with 178 additions and 0 deletions
|
@ -76,6 +76,7 @@ in
|
|||
plover-plugin-stenotype-extended
|
||||
asar
|
||||
bsnes-plus
|
||||
sliding-sync
|
||||
;
|
||||
}
|
||||
// (
|
||||
|
|
|
@ -120,6 +120,7 @@
|
|||
plover-plugin-stenotype-extended
|
||||
asar
|
||||
bsnes-plus
|
||||
sliding-sync
|
||||
;
|
||||
}
|
||||
// (
|
||||
|
|
37
matrix/sliding-sync/default.nix
Normal file
37
matrix/sliding-sync/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
buildGoApplication,
|
||||
olm,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
writeScript,
|
||||
go,
|
||||
}: let
|
||||
source = builtins.fromJSON (builtins.readFile ./source.json);
|
||||
in
|
||||
buildGoApplication rec {
|
||||
pname = "sliding-sync";
|
||||
version = source.date;
|
||||
src = fetchFromGitHub {
|
||||
owner = "matrix-org";
|
||||
repo = "sliding-sync";
|
||||
inherit (source) rev sha256;
|
||||
};
|
||||
modules = ./gomod2nix.toml;
|
||||
buildInputs = [
|
||||
olm
|
||||
];
|
||||
CGO_ENABLED = "1";
|
||||
doCheck = false;
|
||||
meta = {
|
||||
description = "sliding sync proxy";
|
||||
license = lib.licenses.asl20;
|
||||
broken = builtins.compareVersions go.version "1.18" < 0;
|
||||
};
|
||||
passthru.updateScript = writeScript "update-sliding-sync" ''
|
||||
${../../scripts/update-git.sh} "https://github.com/matrix-org/sliding-sync" matrix/sliding-sync/source.json
|
||||
if [ "$(git diff -- matrix/sliding-sync/source.json)" ]; then
|
||||
SRC_PATH=$(nix-build -E '(import ./. {}).${pname}.src')
|
||||
${../../scripts/update-go.sh} $SRC_PATH matrix/sliding-sync/
|
||||
fi
|
||||
'';
|
||||
}
|
126
matrix/sliding-sync/gomod2nix.toml
Normal file
126
matrix/sliding-sync/gomod2nix.toml
Normal file
|
@ -0,0 +1,126 @@
|
|||
schema = 3
|
||||
|
||||
[mod]
|
||||
[mod."github.com/ReneKroon/ttlcache/v2"]
|
||||
version = "v2.8.1"
|
||||
hash = "sha256-Qn8ARU4j35e8CUBa9OwW2xHM7ERKuorJP+9F/thjrt4="
|
||||
[mod."github.com/beorn7/perks"]
|
||||
version = "v1.0.1"
|
||||
hash = "sha256-h75GUqfwJKngCJQVE5Ao5wnO3cfKD9lSIteoLp/3xJ4="
|
||||
[mod."github.com/cespare/xxhash/v2"]
|
||||
version = "v2.1.2"
|
||||
hash = "sha256-YV9SmXDtmmgQylQUfrUgQLAPfqYexcHxegMBT+IX9qM="
|
||||
[mod."github.com/felixge/httpsnoop"]
|
||||
version = "v1.0.3"
|
||||
hash = "sha256-qV3UPYKKBQDTzAUzzsTpfdbGhFnkmTO/r5ylPL1SyfA="
|
||||
[mod."github.com/getsentry/sentry-go"]
|
||||
version = "v0.20.0"
|
||||
hash = "sha256-0XH/G7GeYOyAr6KP2u5uTCAoxYvcFY1043CmDaycDwE="
|
||||
[mod."github.com/go-logr/logr"]
|
||||
version = "v1.2.4"
|
||||
hash = "sha256-+FhzmqKsAnsra5p8LuxENXJBHSeuWjQG8Tzhpyd/ps4="
|
||||
[mod."github.com/go-logr/stdr"]
|
||||
version = "v1.2.2"
|
||||
hash = "sha256-rRweAP7XIb4egtT1f2gkz4sYOu7LDHmcJ5iNsJUd0sE="
|
||||
[mod."github.com/go-logr/zerologr"]
|
||||
version = "v1.2.3"
|
||||
hash = "sha256-8iBqqOlzJiTYElReCbB+2CZXn8szxH58yazHwontsJU="
|
||||
[mod."github.com/golang/protobuf"]
|
||||
version = "v1.5.2"
|
||||
hash = "sha256-IVwooaIo46iq7euSSVWTBAdKd+2DUaJ67MtBao1DpBI="
|
||||
[mod."github.com/gorilla/mux"]
|
||||
version = "v1.8.0"
|
||||
hash = "sha256-s905hpzMH9bOLue09E2JmzPXfIS4HhAlgT7g13HCwKE="
|
||||
[mod."github.com/jmoiron/sqlx"]
|
||||
version = "v1.3.3"
|
||||
hash = "sha256-bhpbvoyhgRME1EMQFBWR0vl/wWfuk4ZuKmELH9Sox/M="
|
||||
[mod."github.com/lib/pq"]
|
||||
version = "v1.10.9"
|
||||
hash = "sha256-Gl6dLtL+yk6UrTTWfas43aM4lP/pNa2l7+ITXnjQyKs="
|
||||
[mod."github.com/matrix-org/gomatrix"]
|
||||
version = "v0.0.0-20210324163249-be2af5ef2e16"
|
||||
hash = "sha256-WS9vp/b8nJSqE0U4M1OHR1LdGsraS5KtQcVAdDfZ7UU="
|
||||
[mod."github.com/matrix-org/gomatrixserverlib"]
|
||||
version = "v0.0.0-20230105074811-965b10ae73ab"
|
||||
hash = "sha256-dUg80Mk4S5eLNpZYgN4kSCowzO96X2zWGQDZEqJTHV0="
|
||||
[mod."github.com/matrix-org/util"]
|
||||
version = "v0.0.0-20200807132607-55161520e1d4"
|
||||
hash = "sha256-LvuzVBtlgFlqIvAyred2druEijgWRLND+LXzYCxy9sA="
|
||||
[mod."github.com/mattn/go-colorable"]
|
||||
version = "v0.1.13"
|
||||
hash = "sha256-qb3Qbo0CELGRIzvw7NVM1g/aayaz4Tguppk9MD2/OI8="
|
||||
[mod."github.com/mattn/go-isatty"]
|
||||
version = "v0.0.19"
|
||||
hash = "sha256-wYQqGxeqV3Elkmn26Md8mKZ/viw598R4Ych3vtt72YE="
|
||||
[mod."github.com/matttproud/golang_protobuf_extensions"]
|
||||
version = "v1.0.1"
|
||||
hash = "sha256-ystDNStxR90j4CK+AMcEQ5oyYFRgWoGdvWlS0XQMDLQ="
|
||||
[mod."github.com/pressly/goose/v3"]
|
||||
version = "v3.14.0"
|
||||
hash = "sha256-BoTCzWcRd3DJQmhY+6j48bguPxIrohOTM0M+yhxpdbs="
|
||||
[mod."github.com/prometheus/client_golang"]
|
||||
version = "v1.13.0"
|
||||
hash = "sha256-5nC5FuGuAB71k6Dm4vBcmpPpBAKfvArO/yr7e9rfQfg="
|
||||
[mod."github.com/prometheus/client_model"]
|
||||
version = "v0.2.0"
|
||||
hash = "sha256-LTHxYPRgoggl+v89ly2/RkyPIuJlmZRdGs6ZRtK3zkk="
|
||||
[mod."github.com/prometheus/common"]
|
||||
version = "v0.37.0"
|
||||
hash = "sha256-B2v0WsP8uKWYBpZcrog/sQXStIXwWZcVLmfPgnh1ZZA="
|
||||
[mod."github.com/prometheus/procfs"]
|
||||
version = "v0.11.0"
|
||||
hash = "sha256-dfbKDyKmL+BNGVuvEZmw1CiGBiwqUADxJKkIi1Sbv1Y="
|
||||
[mod."github.com/rs/xid"]
|
||||
version = "v1.4.0"
|
||||
hash = "sha256-X7WH1cxWBof4m8ZWCnP0VYQdwzBti2eoa/sqm3BmLcg="
|
||||
[mod."github.com/rs/zerolog"]
|
||||
version = "v1.29.0"
|
||||
hash = "sha256-CVRSKk2O0nwAbu0fVY/JXpKaubJHhy9gtnSbEykPO3k="
|
||||
[mod."github.com/sirupsen/logrus"]
|
||||
version = "v1.9.3"
|
||||
hash = "sha256-EnxsWdEUPYid+aZ9H4/iMTs1XMvCLbXZRDyvj89Ebms="
|
||||
[mod."github.com/tidwall/gjson"]
|
||||
version = "v1.14.3"
|
||||
hash = "sha256-CjsKkesYwKl6hwHXB/+mvkuzW2ihKecUyvUFHUtylcw="
|
||||
[mod."github.com/tidwall/match"]
|
||||
version = "v1.1.1"
|
||||
hash = "sha256-M2klhPId3Q3T3VGkSbOkYl/2nLHnsG+yMbXkPkyrRdg="
|
||||
[mod."github.com/tidwall/pretty"]
|
||||
version = "v1.2.0"
|
||||
hash = "sha256-esRQGsn2Ee/CiySlwyuOICSLdqUkH4P7u8qXszos8Yc="
|
||||
[mod."github.com/tidwall/sjson"]
|
||||
version = "v1.2.5"
|
||||
hash = "sha256-OYGNolkmL7E1Qs2qrQ3IVpQp5gkcHNU/AB/z2O+Myps="
|
||||
[mod."go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"]
|
||||
version = "v0.42.0"
|
||||
hash = "sha256-LZtMXjs1bBPtB9iEkkDx3b5B2gkMkzo9X3flQz3slmM="
|
||||
[mod."go.opentelemetry.io/otel"]
|
||||
version = "v1.16.0"
|
||||
hash = "sha256-tOn85qd55FoyzM6v162t15L0Kkxb0pzyOaCh/2HaVcE="
|
||||
[mod."go.opentelemetry.io/otel/exporters/jaeger"]
|
||||
version = "v1.16.0"
|
||||
hash = "sha256-l0R7iGb8jc6gWZOdwZS/i4zdvbstyUrERIEhQ6RIM48="
|
||||
[mod."go.opentelemetry.io/otel/metric"]
|
||||
version = "v1.16.0"
|
||||
hash = "sha256-wl64wdxrQlHnXOK8HpPoH4xUE59DJ4nrAO2/yuzmgD0="
|
||||
[mod."go.opentelemetry.io/otel/sdk"]
|
||||
version = "v1.16.0"
|
||||
hash = "sha256-EPdo5t2OK6XBAcsV92RRXTU8CbbEdO9wcfG3oAPfki4="
|
||||
[mod."go.opentelemetry.io/otel/trace"]
|
||||
version = "v1.16.0"
|
||||
hash = "sha256-14YQtLnMYjjt1AlAg1CTQmQflZ+IAp48kqQghZKDXn8="
|
||||
[mod."golang.org/x/crypto"]
|
||||
version = "v0.10.0"
|
||||
hash = "sha256-K+hdDHZM4oguyeYQAlp8Pu+BdVmo1pSIQ6jdVHdVPW0="
|
||||
[mod."golang.org/x/sync"]
|
||||
version = "v0.2.0"
|
||||
hash = "sha256-hKk9zsy2aXY7R0qGFZhGOVvk5qD17f6KHEuK4rGpTsg="
|
||||
[mod."golang.org/x/sys"]
|
||||
version = "v0.10.0"
|
||||
hash = "sha256-eeifyHj8IcTAruekJAGMCcjFyU2GAIAgvxS36hPZM1U="
|
||||
[mod."golang.org/x/text"]
|
||||
version = "v0.11.0"
|
||||
hash = "sha256-W/XvTPAGIOlFVwZ7rTaEid7pdRtb4wc6a+nyOW99/ks="
|
||||
[mod."google.golang.org/protobuf"]
|
||||
version = "v1.29.1"
|
||||
hash = "sha256-ilSVvttGSP2xpqpoyQ0/Iuyx1WMiwe6GASKTfoeaqxw="
|
12
matrix/sliding-sync/source.json
Normal file
12
matrix/sliding-sync/source.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"url": "https://github.com/matrix-org/sliding-sync",
|
||||
"rev": "b727ac37edc3d962ee2c4c78b15dff34fc05231a",
|
||||
"date": "2023-08-04T14:48:15+01:00",
|
||||
"path": "/nix/store/yjlxnmk5ahjr5gygp5s5j307bjw6pw2a-sliding-sync",
|
||||
"sha256": "19k2b8z10ayhphspqg7rwgslb7aawxfqzmzb7v0hyv73zramqmp7",
|
||||
"hash": "sha256-51ZcVf7jbA/BPuvXj13nSp1F9eP5PHw1vNArED5aYqY=",
|
||||
"fetchLFS": false,
|
||||
"fetchSubmodules": false,
|
||||
"deepClone": false,
|
||||
"leaveDotGit": false
|
||||
}
|
|
@ -126,6 +126,7 @@ system: self: super: let
|
|||
bcachefs-tools = self.callPackage ./linux/bcachefs-tools {};
|
||||
asar = self.callPackage ./compiler/asar {};
|
||||
bsnes-plus = self.libsForQt5.callPackage ./emulator/bsnes-plus {};
|
||||
sliding-sync = self.callPackage ./matrix/sliding-sync {};
|
||||
})
|
||||
riscv-overlay
|
||||
];
|
||||
|
|
Reference in a new issue