From 555d2db62008fb156d37b5cfa13df3e062527fa2 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Fri, 27 Apr 2018 20:04:00 +0200 Subject: [PATCH] selfoss: 2016-07-31 -> 2.18 Fixes PHP7 compatibility. --- pkgs/servers/web-apps/selfoss/default.nix | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/pkgs/servers/web-apps/selfoss/default.nix b/pkgs/servers/web-apps/selfoss/default.nix index 14f1dffee64c..4ed9d96510c8 100644 --- a/pkgs/servers/web-apps/selfoss/default.nix +++ b/pkgs/servers/web-apps/selfoss/default.nix @@ -1,16 +1,17 @@ -{ stdenv, fetchFromGitHub }: +{ stdenv, fetchurl, unzip }: stdenv.mkDerivation rec { - name = "selfoss-unstable-${version}"; - version = "2016-07-31"; + name = "selfoss-${version}"; + version = "2.18"; - src = fetchFromGitHub { - owner = "SSilence"; - repo = "selfoss"; - rev = "ceb431ad9208e2c5e31dafe593c75e5eb8b65cf7"; - sha256 = "00vrpw7sb95x6lwpaxrlzxyj98k98xblqcrjr236ykv0ha97xv30"; + src = fetchurl { + url = "https://github.com/SSilence/selfoss/releases/download/${version}/${name}.zip"; + sha256 = "1vd699r1kjc34n8avggckx2b0daj5rmgrj997sggjw2inaq4cg8b"; }; + sourceRoot = "."; + nativeBuildInputs = [ unzip ]; + installPhase = '' mkdir $out cp -ra * $out/