mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
ff323ed355
via: `find pkgs/ -type f -exec sed -i 's/vendorSha256 = "sha256/vendorHash = "sha256/' {};`
35 lines
803 B
Nix
35 lines
803 B
Nix
{ lib, buildGoModule, fetchFromGitHub, go-bindata }:
|
|
|
|
buildGoModule rec {
|
|
pname = "writefreely";
|
|
version = "0.13.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "writeas";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-GnuqYgiwXdKM+os5RzuUYe9ADOhZaxou5dD7GCEE1Ns=";
|
|
};
|
|
|
|
vendorHash = "sha256-IBer+8FP+IWWJPnaugr8zzQA9mSVFzP0Nofgl/PhtzQ=";
|
|
|
|
nativeBuildInputs = [ go-bindata ];
|
|
|
|
preBuild = ''
|
|
make assets
|
|
'';
|
|
|
|
ldflags = [ "-s" "-w" "-X github.com/writeas/writefreely.softwareVer=${version}" ];
|
|
|
|
tags = [ "sqlite" ];
|
|
|
|
subPackages = [ "cmd/writefreely" ];
|
|
|
|
meta = with lib; {
|
|
description = "Build a digital writing community";
|
|
homepage = "https://github.com/writeas/writefreely";
|
|
license = licenses.agpl3Only;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|