infrastructure/nixos/pkgs/glitch-soc/source.nix
Vivian c788335493
Some checks are pending
Plex Update / update (push) Waiting to run
update masto
2025-03-24 12:14:12 +01:00

23 lines
536 B
Nix

/*
This fetches the glitch-soc source from GitHub and patches it.
This needs to be a separately buildable package so that update.sh can build it during upgrading,
because it needs it for generating `gemset.nix` from the Gemfile in the source.
*/
{
applyPatches,
fetchFromGitHub,
lib,
}:
let
versionData = import ./version_data.nix;
in applyPatches {
src = fetchFromGitHub {
owner = "glitch-soc";
repo = "mastodon";
inherit (versionData) rev hash;
};
patches = lib.filesystem.listFilesRecursive ./patches;
}