summary refs log tree commit diff
path: root/pkgs/development/compilers/elm
diff options
context:
space:
mode:
authorThéo Zimmermann <theo.zimmermann@inria.fr>2020-08-27 20:58:50 +0200
committerThéo Zimmermann <theo.zimmermann@inria.fr>2022-08-30 19:12:30 +0200
commitc335189e81d35885fc797bc2a25469693055a916 (patch)
treefbd0fe09b7396364e838a2135476e85a0b6fc236 /pkgs/development/compilers/elm
parent230779978f2d5b2d230070530aaad862c1aed98b (diff)
downloadnixpkgs-c335189e81d35885fc797bc2a25469693055a916.tar
nixpkgs-c335189e81d35885fc797bc2a25469693055a916.tar.gz
nixpkgs-c335189e81d35885fc797bc2a25469693055a916.tar.bz2
nixpkgs-c335189e81d35885fc797bc2a25469693055a916.tar.lz
nixpkgs-c335189e81d35885fc797bc2a25469693055a916.tar.xz
nixpkgs-c335189e81d35885fc797bc2a25469693055a916.tar.zst
nixpkgs-c335189e81d35885fc797bc2a25469693055a916.zip
elmPackages.lamdera: init at 1.0.1
Diffstat (limited to 'pkgs/development/compilers/elm')
-rw-r--r--pkgs/development/compilers/elm/default.nix2
-rw-r--r--pkgs/development/compilers/elm/packages/lamdera.nix40
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/compilers/elm/default.nix b/pkgs/development/compilers/elm/default.nix
index 376e956d7ca..ba98648a8a9 100644
--- a/pkgs/development/compilers/elm/default.nix
+++ b/pkgs/development/compilers/elm/default.nix
@@ -238,6 +238,8 @@ in lib.makeScope pkgs.newScope (self: with self; {
         }
       );
 
+      lamdera = callPackage ./packages/lamdera.nix {};
+
       inherit (nodePkgs) elm-doc-preview elm-live elm-upgrade elm-xref elm-analyse elm-git-install;
     })
   )
diff --git a/pkgs/development/compilers/elm/packages/lamdera.nix b/pkgs/development/compilers/elm/packages/lamdera.nix
new file mode 100644
index 00000000000..2439ed04cc8
--- /dev/null
+++ b/pkgs/development/compilers/elm/packages/lamdera.nix
@@ -0,0 +1,40 @@
+{ stdenv, lib
+, fetchurl
+, autoPatchelfHook
+, gmp5, ncurses5, zlib
+}:
+
+stdenv.mkDerivation rec {
+  pname = "lamdera";
+  version = "1.0.1";
+
+  src = fetchurl {
+    url = "https://static.lamdera.com/bin/linux/lamdera-v${version}";
+    sha256 = "15dee9df5d4e71b07a65fbd89d0f7dcd8c3e7ba05fe2b0e7a30d29bbd1239d9f";
+  };
+
+  dontUnpack = true;
+
+  nativeBuildInputs = [
+    autoPatchelfHook
+  ];
+
+  buildInputs = [
+    gmp5
+    ncurses5
+    zlib
+  ];
+
+
+  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 = [ "x86_64-linux" ];
+    maintainers = with maintainers; [ Zimmi48 ];
+  };
+}