about summary refs log tree commit diff
path: root/pkgs/development/compilers/elm
diff options
context:
space:
mode:
authorSiriusStarr <2049163+SiriusStarr@users.noreply.github.com>2023-04-03 13:48:21 -0700
committerSiriusStarr <2049163+SiriusStarr@users.noreply.github.com>2023-04-03 13:54:57 -0700
commit81798fe4f48633eb5e8d11bde1cb3c15fe80840d (patch)
treeb929ec682e39515e87be356c30ceb95532869cf4 /pkgs/development/compilers/elm
parentfc46a9d1e2b30321a2497e413eb1562c9cfda5b6 (diff)
elmPackages.lamdera: 1.0.1 -> 1.1.0
Release notes: https://dashboard.lamdera.app/releases/v1-1-0

This follows the official gist at:
https://gist.github.com/supermario/e34de4ee5b37c54041320be7dd252e6b
Diffstat (limited to 'pkgs/development/compilers/elm')
-rw-r--r--pkgs/development/compilers/elm/packages/lamdera.nix33
1 files changed, 16 insertions, 17 deletions
diff --git a/pkgs/development/compilers/elm/packages/lamdera.nix b/pkgs/development/compilers/elm/packages/lamdera.nix
index 6e93bd431ced4..835c565013ee8 100644
--- a/pkgs/development/compilers/elm/packages/lamdera.nix
+++ b/pkgs/development/compilers/elm/packages/lamdera.nix
@@ -1,31 +1,30 @@
 { stdenv, lib
 , fetchurl
-, autoPatchelfHook
-, gmp5, ncurses5, zlib
 }:
 
+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.0.1";
+  version = "1.1.0";
 
   src = fetchurl {
-    url = "https://static.lamdera.com/bin/linux/lamdera-v${version}";
-    sha256 = "15dee9df5d4e71b07a65fbd89d0f7dcd8c3e7ba05fe2b0e7a30d29bbd1239d9f";
+    url = "https://static.lamdera.com/bin/lamdera-${version}-${os}-${arch}";
+    sha256 = hashes.${stdenv.system};
   };
 
   dontUnpack = true;
 
-  nativeBuildInputs = [
-    autoPatchelfHook
-  ];
-
-  buildInputs = [
-    gmp5
-    ncurses5
-    zlib
-  ];
-
-
   installPhase = ''
     install -m755 -D $src $out/bin/lamdera
   '';
@@ -34,7 +33,7 @@ stdenv.mkDerivation rec {
     homepage = "https://lamdera.com";
     license = licenses.unfree;
     description = "A delightful platform for full-stack web apps";
-    platforms = [ "x86_64-linux" ];
+    platforms = [ "aarch64-linux" "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ];
     maintainers = with maintainers; [ Zimmi48 ];
   };
 }