aboutsummaryrefslogtreecommitdiff
path: root/pkgs/webapps/phpbb/extensions/markdown.nix
blob: 3bd73c7a42f987c26ea65c6813dba2942b0f6745 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
  pname = "phpBB-extension-markdown";
  version = "1.2.0";
  src = fetchurl {
    # https://www.phpbb.com/customise/db/extension/markdown
    name = "alfredoramos_markdown_${version}.zip";
    url = "https://www.phpbb.com/customise/db/download/173626";
    sha256 = "0bmgi8qr6azaaz8xnz8dkyf147dyawqvqr93r01qbm9s8bfkpzqx";
  };

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