nix-infra/overlays/gotosocial.nix

26 lines
777 B
Nix
Raw Normal View History

2024-05-04 10:03:59 +00:00
final: prev: {
gotosocial =
let
2024-07-03 09:52:05 +00:00
version = "0.16.0";
2024-05-04 10:03:59 +00:00
web-assets = prev.fetchurl {
2024-06-08 13:52:30 +00:00
url = "https://github.com/superseriousbusiness/gotosocial/releases/download/v${version}/gotosocial_${version}_web-assets.tar.gz";
2024-07-03 09:52:05 +00:00
hash = "sha256-aZQpd5KvoZvXEMVzGbWrtGsc+P1JStjZ6U5mX6q7Vb0=";
2024-05-04 10:03:59 +00:00
};
in
prev.gotosocial.overrideAttrs {
2024-06-08 13:52:30 +00:00
inherit version;
2024-05-04 10:03:59 +00:00
doCheck = false;
src = prev.fetchFromGitHub {
owner = "superseriousbusiness";
repo = "gotosocial";
2024-06-08 13:52:30 +00:00
rev = "refs/tags/v${ version }";
2024-07-03 09:52:05 +00:00
hash = "sha256-QoG09+jmq5e5vxDVtkhY35098W/9B1HsYTuUnz43LV4=";
2024-05-04 10:03:59 +00:00
};
postInstall = ''
tar xf ${web-assets}
mkdir -p $out/share/gotosocial
mv web $out/share/gotosocial/
'';
};
}