summary refs log tree commit diff
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-04-03 02:37:23 +0200
committerGitHub <noreply@github.com>2021-04-03 02:37:23 +0200
commit11aadf2e08cae211639514de3226ce4ac20332bd (patch)
treef6881682ff12d554eeceac66b06f9ea23cbeeb6c
parentee8c25055bf69163eb06fe58618ddecadd8a2380 (diff)
parent865d2d604ffb5b512f27c5bee12a9c68029e1b75 (diff)
downloadnixpkgs-11aadf2e08cae211639514de3226ce4ac20332bd.tar
nixpkgs-11aadf2e08cae211639514de3226ce4ac20332bd.tar.gz
nixpkgs-11aadf2e08cae211639514de3226ce4ac20332bd.tar.bz2
nixpkgs-11aadf2e08cae211639514de3226ce4ac20332bd.tar.lz
nixpkgs-11aadf2e08cae211639514de3226ce4ac20332bd.tar.xz
nixpkgs-11aadf2e08cae211639514de3226ce4ac20332bd.tar.zst
nixpkgs-11aadf2e08cae211639514de3226ce4ac20332bd.zip
Merge pull request #117953 from SuperSandro2000/writefreely
writefreely: init at 0.12.0
-rw-r--r--pkgs/applications/misc/writefreely/default.nix34
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 36 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 ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 020199895db..e5608a328bc 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -905,6 +905,8 @@ in
     inherit (darwin.apple_sdk.frameworks) Cocoa CoreGraphics Foundation;
   };
 
+  writefreely = callPackage ../applications/misc/writefreely { };
+
   x3270 = callPackage ../applications/terminal-emulators/x3270 { };
 
   xterm = callPackage ../applications/terminal-emulators/xterm { };