about summary refs log tree commit diff
path: root/pkgs/by-name/ye/yeswiki/package.nix
blob: 64ccd4353525fa238f711dc480d23b51eb66c320 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  lib,
  stdenv,
  fetchurl,
  unzip,
}:
let
  version = "4.4.2";
in stdenv.mkDerivation {
  pname = "yeswiki";
  inherit version;

  src = fetchurl {
    url = "https://repository.yeswiki.net/doryphore/yeswiki-doryphore-${version}.zip";
    hash = "sha256-TNiVBragEnLkMTu/Op6sCFsk9wWXUQ2GUPqmWgPV/vk=";
  };

  nativeBuildInputs = [
    unzip
  ];

  installPhase = ''
    runHook preInstall
    mkdir -p $out/
    cp -R . $out/
    runHook postInstall
  '';
}