restya-board: switch to fetchFromGitHub
This commit is contained in:
parent
94e5deab05
commit
e511b63579
|
@ -1,15 +1,12 @@
|
||||||
{ stdenv, fetchurl, unzip }:
|
{ stdenv, fetchurl, fetchFromGitHub, unzip }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
hide-card-additional-information = fetchurl {
|
board-apps = fetchFromGitHub {
|
||||||
url = "https://github.com/RestyaPlatform/board-apps/releases/download/v1/r_hide_card_additional_informations-v0.1.3.zip";
|
owner = "RestyaPlatform";
|
||||||
sha256 = "1cp92av7b4nzdgybbqnh9jpkqkjv1rvm98ca96ib4qfsyi9gjrp7";
|
repo = "board-apps";
|
||||||
};
|
rev = "v1";
|
||||||
|
sha256 = "038qq0x547xzr9v1sa6cd3pagi2z4sfy80lcjn3qqgp5h39mb02x";
|
||||||
togetherjs = fetchurl {
|
|
||||||
url = "https://github.com/RestyaPlatform/board-apps/releases/download/v1/r_togetherjs-v0.1.3.zip";
|
|
||||||
sha256 = "1p765kbx4wzf6grgy4x3kvczm6jkm1ipl0cvkvyg4dsim07ab0zy";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
|
@ -18,24 +15,28 @@ stdenv.mkDerivation rec {
|
||||||
pname = "restya-board";
|
pname = "restya-board";
|
||||||
version = "0.6.7";
|
version = "0.6.7";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/RestyaPlatform/board/releases/download/v${version}/board-v${version}.zip";
|
owner = "RestyaPlatform";
|
||||||
sha256 = "07xiakk8fljc79qi80n5945hy2rqrc8kn2i7d49rri2f440wv51i";
|
repo = "board";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0vba8qrg28a5g2ax7xzdp5j2wgl4v7cgasbzhhdji29qjfrldgbf";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ unzip ];
|
nativeBuildInputs = [ unzip ];
|
||||||
|
|
||||||
|
outputs = [ "out" ];
|
||||||
|
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
mkdir $out
|
mkdir $out
|
||||||
unzip -d $out $src
|
mkdir -p $out/client/apps
|
||||||
|
cp -r $src/* $out
|
||||||
|
|
||||||
cd $out
|
cd $out
|
||||||
|
|
||||||
chmod +x $out/server/php/shell/*.sh
|
chmod +x $out/server/php/shell/*.sh
|
||||||
|
|
||||||
mkdir $out/client/apps
|
cp -r ${board-apps}/r_hide_card_id $out/client/apps
|
||||||
unzip -d $out/client/apps ${hide-card-additional-information}
|
cp -r ${board-apps}/r_togetherjs $out/client/apps
|
||||||
unzip -d $out/client/apps ${togetherjs}
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
Loading…
Reference in a new issue