mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
bcd0b9f08d
writefreely: 0.14.0 -> 0.15.0
34 lines
818 B
Nix
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";
|
|
};
|
|
}
|