diff options
Diffstat (limited to 'nixpkgs/pkgs/development/compilers/gleam/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/compilers/gleam/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/compilers/gleam/default.nix b/nixpkgs/pkgs/development/compilers/gleam/default.nix new file mode 100644 index 000000000000..d21c4d48f33f --- /dev/null +++ b/nixpkgs/pkgs/development/compilers/gleam/default.nix @@ -0,0 +1,39 @@ +{ lib +, stdenv +, rustPlatform +, fetchFromGitHub +, git +, pkg-config +, openssl +, Security +, nix-update-script +, SystemConfiguration +}: + +rustPlatform.buildRustPackage rec { + pname = "gleam"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "gleam-lang"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-gPlRihwK+J7s1SeymfVdVo/KIV+eEqxlLVOgsDWW9yo"; + }; + + nativeBuildInputs = [ git pkg-config ]; + + buildInputs = [ openssl ] ++ + lib.optionals stdenv.isDarwin [ Security SystemConfiguration ]; + + cargoHash = "sha256-ouu4Y1085dGSM7kGIWE+hBde6ZUOA1fO0AcHYXPOWzo="; + + passthru.updateScript = nix-update-script { }; + + meta = with lib; { + description = "A statically typed language for the Erlang VM"; + homepage = "https://gleam.run/"; + license = licenses.asl20; + maintainers = teams.beam.members; + }; +} |