3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/version-management/sourcehut/pages.nix

31 lines
694 B
Nix
Raw Normal View History

2021-08-13 06:52:00 +01:00
{ lib
, fetchFromSourcehut
, buildGoModule
}:
2021-10-23 01:23:14 +01:00
buildGoModule rec {
pname = "pagessrht";
2021-12-14 05:50:18 +00:00
version = "0.5.2";
2021-08-13 06:52:00 +01:00
src = fetchFromSourcehut {
owner = "~sircmpwn";
repo = "pages.sr.ht";
rev = version;
2021-12-14 05:50:18 +00:00
sha256 = "sha256-yEM122uhF0MNkMlNXyvBSfkLogRQETeuBl2K66kivac=";
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 ];
};
}