about summary refs log tree commit diff
path: root/pkgs/by-name/ye/yeswiki/package.nix
blob: 0e0562eaf52aed4a6623496f7cd281245c65065b (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
{
  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
  '';
}