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 =
|
|
|
|
{
|
2023-10-09 19:29:22 +00:00
|
|
|
"x86_64-linux" = "b13110bacc3f71c2a3e12c52172a821a85cc13243a95249ca18c8beb296c0ce8";
|
|
|
|
"aarch64-linux" = "afbc71f0570b86215942d1b4207fe3de0299e6fdfd2e6caac78bf688c81b9bd1";
|
|
|
|
"x86_64-darwin" = "50a3df09b02b34e1653beb1507c6de0f332674e088ded7c66af4e5987753304e";
|
|
|
|
"aarch64-darwin" = "174a5bfec355361c4f030861405513818be25fd7e4325f7221aa71ebd27475d3";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lamdera";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.2.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 ];
|
|
|
|
};
|
|
|
|
}
|