nixpkgs/pkgs/applications/misc/writefreely/default.nix
Pascal Wittmann bcd0b9f08d
Merge pull request #286494 from soopyc/writefreely
writefreely: 0.14.0 -> 0.15.0
2024-04-19 11:13:23 +02:00

34 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";
};
}