2022-09-09 14:08:57 +00:00
|
|
|
{ stdenv, lib
|
|
|
|
, fetchurl
|
|
|
|
}:
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
let
|
|
|
|
os = if stdenv.isDarwin then "macos" else "linux";
|
|
|
|
arch = if stdenv.isAarch64 then "arm64" else "x86_64";
|
|
|
|
hashes =
|
|
|
|
{
|
|
|
|
"x86_64-linux" = "443a763487366fa960120bfe193441e6bbe86fdb31baeed7dbb17d410dee0522";
|
|
|
|
"aarch64-linux" = "f11bec3b094df0c0958a8f1e07af5570199e671a882ad5fe979f1e7e482e986d";
|
|
|
|
"x86_64-darwin" = "d05a88d13e240fdbc1bf64bd1a4a9ec4d3d53c95961bb9e338449b856df91853";
|
|
|
|
"aarch64-darwin" = "bb105e7aebae3c637b761017c6fb49d9696eba1022f27ec594aac9c2dbffd907";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lamdera";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "1.1.0";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-04-12 12:48:02 +00:00
|
|
|
url = "https://static.lamdera.com/bin/lamdera-${version}-${os}-${arch}";
|
|
|
|
sha256 = hashes.${stdenv.system};
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m755 -D $src $out/bin/lamdera
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://lamdera.com";
|
|
|
|
license = licenses.unfree;
|
|
|
|
description = "A delightful platform for full-stack web apps";
|
2023-04-12 12:48:02 +00:00
|
|
|
platforms = [ "aarch64-linux" "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ];
|
2022-09-09 14:08:57 +00:00
|
|
|
maintainers = with maintainers; [ Zimmi48 ];
|
|
|
|
};
|
|
|
|
}
|