diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-03-29 18:47:49 +0200 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-03-29 18:47:49 +0200 |
commit | 865d2d604ffb5b512f27c5bee12a9c68029e1b75 (patch) | |
tree | f5180300193c7ee45d1d17478dfa43e770b5b455 /pkgs/applications/misc/writefreely | |
parent | 320763c7aa4dc55ce4202a2566a26f564d5f1b9b (diff) | |
download | nixpkgs-865d2d604ffb5b512f27c5bee12a9c68029e1b75.tar nixpkgs-865d2d604ffb5b512f27c5bee12a9c68029e1b75.tar.gz nixpkgs-865d2d604ffb5b512f27c5bee12a9c68029e1b75.tar.bz2 nixpkgs-865d2d604ffb5b512f27c5bee12a9c68029e1b75.tar.lz nixpkgs-865d2d604ffb5b512f27c5bee12a9c68029e1b75.tar.xz nixpkgs-865d2d604ffb5b512f27c5bee12a9c68029e1b75.tar.zst nixpkgs-865d2d604ffb5b512f27c5bee12a9c68029e1b75.zip |
writefreely: init at 0.12.0
Diffstat (limited to 'pkgs/applications/misc/writefreely')
-rw-r--r-- | pkgs/applications/misc/writefreely/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/applications/misc/writefreely/default.nix b/pkgs/applications/misc/writefreely/default.nix new file mode 100644 index 00000000000..5f38d405cb8 --- /dev/null +++ b/pkgs/applications/misc/writefreely/default.nix @@ -0,0 +1,34 @@ +{ lib, buildGoModule, fetchFromGitHub, go-bindata }: + +buildGoModule rec { + pname = "writefreely"; + version = "0.12.0"; + + src = fetchFromGitHub { + owner = "writeas"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-6LpRfDu3xvE1eIRLfZliKnzsrrG5pjjf2ydxn9HQJJU="; + }; + + vendorSha256 = "sha256-U17AkMJQr/OIMED0i2ThcNVw3+aOvRLbpLNP/wEv6k8="; + + nativeBuildInputs = [ go-bindata ]; + + preBuild = '' + make assets + export buildFlagsArray=( + "-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; [ SuperSandro2000 ]; + }; +} |