mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
43 lines
865 B
Nix
43 lines
865 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "writefreely";
|
|
version = "0.15.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "writefreely";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Qr31XSbAckLElD81yxD+K7tngWECQ+wyuESC+biAbyw=";
|
|
};
|
|
|
|
vendorHash = "sha256-HmEh8WmKbdAimvzsAiaXcqSXoU1DJx06+s1EH1JZmwo=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/writefreely/writefreely.softwareVer=${version}"
|
|
];
|
|
|
|
tags = [ "sqlite" ];
|
|
|
|
subPackages = [ "cmd/writefreely" ];
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests) 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";
|
|
};
|
|
}
|