at master 1.2 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchurl, 5}: 6 7let 8 os = if stdenv.hostPlatform.isDarwin then "macos" else "linux"; 9 arch = if stdenv.hostPlatform.isAarch64 then "arm64" else "x86_64"; 10 hashes = { 11 "x86_64-linux" = "15a69bfa98155651749e31c68d05a04fcf48bdccb86bce77b7c8872f545cecfa"; 12 "aarch64-linux" = "68a16bbbd2ed0ee19c36112a4c2d0abca66cf17465747e55adf2596b0921f8d7"; 13 "x86_64-darwin" = "af2c63a60a689091a01bfd212e0ce141a6d7ba61d34a585d8f83159d0ed39c6f"; 14 "aarch64-darwin" = "06f9f7fdcbb392a0a8a5034baf915d2b95b2876255aa8df8397ddafd1e540b7a"; 15 }; 16in 17 18stdenv.mkDerivation rec { 19 pname = "lamdera"; 20 version = "1.3.2"; 21 22 src = fetchurl { 23 url = "https://static.lamdera.com/bin/lamdera-${version}-${os}-${arch}"; 24 sha256 = hashes.${stdenv.system}; 25 }; 26 27 dontUnpack = true; 28 29 installPhase = '' 30 install -m755 -D $src $out/bin/lamdera 31 ''; 32 33 meta = with lib; { 34 homepage = "https://lamdera.com"; 35 license = licenses.unfree; 36 description = "Delightful platform for full-stack web apps"; 37 platforms = [ 38 "aarch64-linux" 39 "x86_64-linux" 40 "aarch64-darwin" 41 "x86_64-darwin" 42 ]; 43 maintainers = with maintainers; [ Zimmi48 ]; 44 }; 45}