mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
29 lines
464 B
Nix
29 lines
464 B
Nix
{
|
|
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
|
|
'';
|
|
}
|