depot/third_party/nixpkgs/pkgs/applications/misc/writefreely/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

33 lines
818 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "writefreely";
version = "0.15.0";
src = fetchFromGitHub {
owner = "writefreely";
repo = pname;
rev = "v${version}";
sha256 = "sha256-7KTNimthtfmQCgyXevAEj+CZ2MS+uOby73OO1fGNXfs=";
};
vendorHash = "sha256-6RTshhxX+w/gdK53wCHVMpm6EkkRtEJ2/Fe7MfZ0WvY=";
patches = [
./fix-go-version-error.patch
];
ldflags = [ "-s" "-w" "-X github.com/writefreely/writefreely.softwareVer=${version}" ];
tags = [ "sqlite" ];
subPackages = [ "cmd/writefreely" ];
meta = with lib; {
description = "Build a digital writing community";
homepage = "https://github.com/writefreely/writefreely";
license = licenses.agpl3Only;
maintainers = with maintainers; [ soopyc ];
mainProgram = "writefreely";
};
}