2019-03-21 16:56:22 +00:00
|
|
|
{ pkgs, stdenv, fetchurl }:
|
|
|
|
|
|
|
|
with pkgs;
|
|
|
|
|
2019-05-07 13:51:28 +00:00
|
|
|
let
|
|
|
|
package = stdenv.mkDerivation rec {
|
|
|
|
name = "StatusImAppImage";
|
|
|
|
version = "20181208";
|
2019-03-21 16:56:22 +00:00
|
|
|
|
2019-05-07 13:51:28 +00:00
|
|
|
src =
|
|
|
|
if stdenv.hostPlatform.system == "x86_64-linux" then
|
|
|
|
fetchurl {
|
|
|
|
url = "https://desktop-app-files.ams3.digitaloceanspaces.com/${name}_${version}.zip";
|
|
|
|
sha256 = "15c6p5v6325kj2whc298dn1dyigi0yzk2nzh1y10d03aqr4j8mp5";
|
|
|
|
}
|
|
|
|
else throw "${name} 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-07 13:51:28 +00:00
|
|
|
meta = {
|
|
|
|
description = "A base image for Linux Status Desktop release distributions";
|
|
|
|
homepage = https://desktop-app-files.ams3.digitaloceanspaces.com/;
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.pombeirp ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2019-03-21 16:56:22 +00:00
|
|
|
};
|
2019-05-07 13:51:28 +00:00
|
|
|
|
|
|
|
in package // {
|
|
|
|
shellHook = ''
|
|
|
|
export STATUSREACT_LINUX_BASEIMAGE_PATH="${package}/src"
|
|
|
|
'';
|
|
|
|
}
|