aboutsummaryrefslogtreecommitdiff
path: root/pkgs/webapps/phpbb/extensions/autosubscribe.nix
blob: 78e23fc516df21e77ad9e48528a24ce0b50d5cf8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
  pname = "phpBB-extension-autosubscribe";
  version = "1.1.0";
  src = fetchurl {
    # https://www.phpbb.com/customise/db/extension/autosubscribe
    url = "https://www.phpbb.com/customise/db/download/146556";
    sha256 = "0dsay463g4impw86w1nv307nslc195fkgkqmihfn5kc0hya0giv0";
  };

  buildInputs = [ unzip ];
  phases = [ "unpackPhase" "installPhase" ];
  unpackPhase = ''
    mkdir src
    cd src
    unzip $src
  '';
  installPhase = "cp -a . $out";
}