Charlotte 🦝 Delenk
3061c12f2c
All checks were successful
Hydra emoji-volpeon-bunhd-flip Hydra build #21070 of nix-packages:x86_64-linux-master-pr72:emoji-volpeon-bunhd-flip
Hydra admin-fe Hydra build #21071 of nix-packages:x86_64-linux-master-pr72:admin-fe
Hydra emoji-volpeon-fox Hydra build #21073 of nix-packages:x86_64-linux-master-pr72:emoji-volpeon-fox
Hydra plover-dict-didoesdigital Hydra build #21074 of nix-packages:x86_64-linux-master-pr72:plover-dict-didoesdigital
Hydra pleroma-fe Hydra build #21075 of nix-packages:x86_64-linux-master-pr72:pleroma-fe
Hydra constructium Hydra build #21076 of nix-packages:x86_64-linux-master-pr72:constructium
Hydra python-tulir-telethon Hydra build #21077 of nix-packages:x86_64-linux-master-pr72:python-tulir-telethon
Hydra emoji-volpeon-raccoon Hydra build #21078 of nix-packages:x86_64-linux-master-pr72:emoji-volpeon-raccoon
Hydra nasin-nanpa Hydra build #21079 of nix-packages:x86_64-linux-master-pr72:nasin-nanpa
Hydra plover Hydra build #21080 of nix-packages:x86_64-linux-master-pr72:plover
Hydra plover-plugin-emoji Hydra build #21081 of nix-packages:x86_64-linux-master-pr72:plover-plugin-emoji
Hydra woodpecker-agent Hydra build #21082 of nix-packages:x86_64-linux-master-pr72:woodpecker-agent
Hydra element-web Hydra build #21083 of nix-packages:x86_64-linux-master-pr72:element-web
Hydra emoji-volpeon-gphn Hydra build #21084 of nix-packages:x86_64-linux-master-pr72:emoji-volpeon-gphn
Hydra emoji-volpeon-bunhd Hydra build #21085 of nix-packages:x86_64-linux-master-pr72:emoji-volpeon-bunhd
Hydra emoji-volpeon-drgn Hydra build #21086 of nix-packages:x86_64-linux-master-pr72:emoji-volpeon-drgn
Hydra woodpecker-cli Hydra build #21087 of nix-packages:x86_64-linux-master-pr72:woodpecker-cli
Hydra lotte-art Hydra build #21088 of nix-packages:x86_64-linux-master-pr72:lotte-art
Hydra plover-plugin-machine-hid Hydra build #21089 of nix-packages:x86_64-linux-master-pr72:plover-plugin-machine-hid
Hydra fairfax Hydra build #21090 of nix-packages:x86_64-linux-master-pr72:fairfax
Hydra papermc Hydra build #21091 of nix-packages:x86_64-linux-master-pr72:papermc
Hydra mautrix-signal Hydra build #21092 of nix-packages:x86_64-linux-master-pr72:mautrix-signal
Hydra woodpecker-frontend Hydra build #21093 of nix-packages:x86_64-linux-master-pr72:woodpecker-frontend
Hydra alco-sans Hydra build #21094 of nix-packages:x86_64-linux-master-pr72:alco-sans
Hydra emoji-volpeon-blobfox Hydra build #21096 of nix-packages:x86_64-linux-master-pr72:emoji-volpeon-blobfox
Hydra emoji-caro Hydra build #21097 of nix-packages:x86_64-linux-master-pr72:emoji-caro
Hydra kreative-square Hydra build #21098 of nix-packages:x86_64-linux-master-pr72:kreative-square
Hydra python-rtf-tokenize Hydra build #21099 of nix-packages:x86_64-linux-master-pr72:python-rtf-tokenize
Hydra attic Hydra build #21100 of nix-packages:x86_64-linux-master-pr72:attic
Hydra python-simplefuzzyset Hydra build #21101 of nix-packages:x86_64-linux-master-pr72:python-simplefuzzyset
Hydra fairfax-hd Hydra build #21102 of nix-packages:x86_64-linux-master-pr72:fairfax-hd
Hydra python-plover-stroke Hydra build #21103 of nix-packages:x86_64-linux-master-pr72:python-plover-stroke
Hydra plover-plugin-tapey-tape Hydra build #21104 of nix-packages:x86_64-linux-master-pr72:plover-plugin-tapey-tape
Hydra plover-plugins-manager Hydra build #21105 of nix-packages:x86_64-linux-master-pr72:plover-plugins-manager
Hydra plover-plugin-rkb1-hid Hydra build #21106 of nix-packages:x86_64-linux-master-pr72:plover-plugin-rkb1-hid
Hydra akkoma Hydra build #21108 of nix-packages:x86_64-linux-master-pr72:akkoma
Hydra emoji-volpeon-blobfox-flip Hydra build #21109 of nix-packages:x86_64-linux-master-pr72:emoji-volpeon-blobfox-flip
Hydra mautrix-cleanup Hydra build #21110 of nix-packages:x86_64-linux-master-pr72:mautrix-cleanup
Hydra plover-plugin-yaml-dictionary Hydra build #21111 of nix-packages:x86_64-linux-master-pr72:plover-plugin-yaml-dictionary
Hydra mautrix-telegram Hydra build #21113 of nix-packages:x86_64-linux-master-pr72:mautrix-telegram
Hydra emoji-lotte Hydra build #21114 of nix-packages:x86_64-linux-master-pr72:emoji-lotte
Hydra attic-client Hydra build #21115 of nix-packages:x86_64-linux-master-pr72:attic-client
Hydra attic-server Hydra build #21116 of nix-packages:x86_64-linux-master-pr72:attic-server
Hydra emoji-volpeon-vlpn Hydra build #21117 of nix-packages:x86_64-linux-master-pr72:emoji-volpeon-vlpn
Hydra python-mautrix Hydra build #21118 of nix-packages:x86_64-linux-master-pr72:python-mautrix
Hydra python-instagram Hydra build #21119 of nix-packages:x86_64-linux-master-pr72:python-instagram
Hydra miifox-net Hydra build #21120 of nix-packages:x86_64-linux-master-pr72:miifox-net
Hydra matrix-media-repo Hydra build #21060 of nix-packages:aarch64-linux-master-pr72:matrix-media-repo
Hydra mautrix-whatsapp Hydra build #21065 of nix-packages:aarch64-linux-master-pr72:mautrix-whatsapp
Hydra woodpecker-server Hydra build #21062 of nix-packages:aarch64-linux-master-pr72:woodpecker-server
Hydra mautrix-discord Hydra build #21066 of nix-packages:aarch64-linux-master-pr72:mautrix-discord
48 lines
1.5 KiB
Nix
48 lines
1.5 KiB
Nix
{
|
|
go_1_19,
|
|
buildGoApplication,
|
|
git,
|
|
fetchFromGitHub,
|
|
lib,
|
|
writeScript,
|
|
}: let
|
|
source = builtins.fromJSON (builtins.readFile ./source.json);
|
|
in
|
|
buildGoApplication rec {
|
|
pname = "matrix-media-repo";
|
|
version = source.date;
|
|
src = fetchFromGitHub {
|
|
owner = "turt2live";
|
|
repo = "matrix-media-repo";
|
|
inherit (source) rev sha256;
|
|
};
|
|
patches = [
|
|
./fix-build.patch
|
|
];
|
|
modules = ./gomod2nix.toml;
|
|
go = go_1_19;
|
|
nativeBuildInputs = [
|
|
git
|
|
];
|
|
CGO_ENABLED = "1";
|
|
buildPhase = ''
|
|
GOBIN=$PWD/bin go install -v ./cmd/compile_assets
|
|
$PWD/bin/compile_assets
|
|
GOBIN=$PWD/bin go install -ldflags "-X github.com/turt2live/matrix-media-repo/common/version.GitCommit=$(git rev-list -1 HEAD) -X github.com/turt2live/matrix-media-repo/common/version.Version=${version}" -v ./cmd/...
|
|
'';
|
|
installPhase = ''
|
|
mkdir $out
|
|
cp -rv bin $out
|
|
'';
|
|
meta = {
|
|
description = "Matrix media repository with multi-domain in mind.";
|
|
license = lib.licenses.mit;
|
|
};
|
|
passthru.updateScript = writeScript "update-matrix-media-repo" ''
|
|
${../../scripts/update-git.sh} "https://github.com/turt2live/matrix-media-repo" matrix/matrix-media-repo/source.json
|
|
if [ "$(git diff -- matrix/matrix-media-repo/source.json)" ]; then
|
|
SRC_PATH=$(nix-build -E '(import ./. {}).${pname}.src')
|
|
${../../scripts/update-go.sh} $SRC_PATH matrix/matrix-media-repo/
|
|
fi
|
|
'';
|
|
}
|