mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
38 lines
811 B
Nix
38 lines
811 B
Nix
{ lib
|
|
, fetchFromSourcehut
|
|
, buildGoModule
|
|
}:
|
|
let
|
|
version = "0.4.8";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~sircmpwn";
|
|
repo = "pages.sr.ht";
|
|
rev = version;
|
|
sha256 = "sha256-z9w8v5e6LY6VUEczltyD55KEUUH7Gw1vUO00KPmT+D8=";
|
|
};
|
|
|
|
in
|
|
buildGoModule {
|
|
inherit src version;
|
|
pname = "pagessrht";
|
|
vendorSha256 = "sha256-xOd9i+PNlLxZrw/+z/C9V+AbOLEociW2YHY+x1K+mJI=";
|
|
|
|
patches = [
|
|
# Upstream after 0.4.8
|
|
./pages-fix-syntax-error-in-schema.sql.patch
|
|
];
|
|
|
|
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";
|
|
license = licenses.agpl3;
|
|
maintainers = with maintainers; [ eadwu ];
|
|
};
|
|
}
|