Merge pull request #188783 from Zimmi48/lamdera

elmPackages.lamdera: init at 1.0.1
This commit is contained in:
Marek Fajkus 2022-08-30 19:15:38 +02:00 committed by GitHub
commit d003639e6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View File

@ -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;
})
)

View File

@ -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 ];
};
}