87f9c27ba9
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ stdenv, lib
|
|
, fetchurl
|
|
}:
|
|
|
|
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
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lamdera";
|
|
version = "1.1.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://static.lamdera.com/bin/lamdera-${version}-${os}-${arch}";
|
|
sha256 = hashes.${stdenv.system};
|
|
};
|
|
|
|
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";
|
|
platforms = [ "aarch64-linux" "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ];
|
|
maintainers = with maintainers; [ Zimmi48 ];
|
|
};
|
|
}
|