2019-05-22 16:04:45 +00:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
2019-03-21 16:56:22 +00:00
|
|
|
|
2019-05-07 13:51:28 +00:00
|
|
|
let
|
2019-05-22 16:04:45 +00:00
|
|
|
package = stdenv.mkDerivation rec {
|
2019-07-19 18:40:03 +00:00
|
|
|
pname = "StatusImAppBundle";
|
2019-05-15 10:49:01 +00:00
|
|
|
version = "20190515";
|
2019-03-21 16:56:22 +00:00
|
|
|
|
2019-05-07 13:51:28 +00:00
|
|
|
src =
|
|
|
|
if stdenv.hostPlatform.system == "x86_64-darwin" then
|
|
|
|
fetchurl {
|
|
|
|
url = "https://desktop-app-files.ams3.digitaloceanspaces.com/Status_${version}.app.zip";
|
2019-05-15 10:49:01 +00:00
|
|
|
sha256 = "1255jgdp0apqh7qfp752nww91iq39x5mm7rf0wazq2vjahfr4pc5";
|
2019-05-07 13:51:28 +00:00
|
|
|
}
|
2019-07-19 18:40:03 +00:00
|
|
|
else throw "${pname} is not supported on ${stdenv.hostPlatform.system}";
|
2019-03-21 16:56:22 +00:00
|
|
|
|
2019-05-07 13:51:28 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2019-03-21 16:56:22 +00:00
|
|
|
|
2019-05-07 13:51:28 +00:00
|
|
|
phases = [ "unpackPhase" ];
|
|
|
|
unpackPhase = ''
|
|
|
|
mkdir -p $out/src
|
|
|
|
unzip $src -d $out/src
|
|
|
|
'';
|
2019-03-21 16:56:22 +00:00
|
|
|
|
2019-05-22 16:04:45 +00:00
|
|
|
meta = with stdenv.lib; {
|
2019-05-07 13:51:28 +00:00
|
|
|
description = "A base image for macOS Status Desktop release distributions";
|
|
|
|
homepage = https://desktop-app-files.ams3.digitaloceanspaces.com/;
|
2019-05-22 16:04:45 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.pombeirp ];
|
|
|
|
platforms = platforms.darwin;
|
2019-05-07 13:51:28 +00:00
|
|
|
};
|
2019-03-21 16:56:22 +00:00
|
|
|
};
|
2019-05-07 13:51:28 +00:00
|
|
|
|
|
|
|
in package // {
|
2019-07-19 18:40:03 +00:00
|
|
|
shellHook = (package.shellHook or "") + ''
|
2019-05-07 13:51:28 +00:00
|
|
|
export STATUSREACT_MACOS_BASEIMAGE_PATH="${package}/src"
|
|
|
|
'';
|
2019-05-15 10:49:01 +00:00
|
|
|
}
|