2021-08-13 06:52:00 +01:00
|
|
|
{ lib
|
|
|
|
, fetchFromSourcehut
|
|
|
|
, buildGoModule
|
|
|
|
}:
|
2021-10-23 01:23:14 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "pagessrht";
|
2021-11-13 21:53:47 +00:00
|
|
|
version = "0.5.1";
|
2021-08-13 06:52:00 +01:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~sircmpwn";
|
|
|
|
repo = "pages.sr.ht";
|
|
|
|
rev = version;
|
2021-11-13 21:53:47 +00:00
|
|
|
sha256 = "sha256-Cab8zx+9WHHAB1rBoyZACq7lx9JdRBGzI1H+Yu9qHfs=";
|
2021-08-13 06:52:00 +01:00
|
|
|
};
|
|
|
|
|
2021-10-23 01:23:14 +01:00
|
|
|
vendorSha256 = "sha256-udr+1y5ApQCSPhs3yQTTi9QfzRbz0A9COYuFMjQGa74=";
|
2021-08-13 06:52:00 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/sql/
|
|
|
|
cp -r -t $out/share/sql/ schema.sql migrations
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://git.sr.ht/~sircmpwn/pages.sr.ht";
|
|
|
|
description = "Web hosting service for the sr.ht network";
|
2021-08-15 21:54:11 +01:00
|
|
|
license = licenses.agpl3Only;
|
2021-08-13 06:52:00 +01:00
|
|
|
maintainers = with maintainers; [ eadwu ];
|
|
|
|
};
|
|
|
|
}
|