Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / compilers / gleam / default.nix
blob474a960d35f267ea1be59d74a4015d7091b37309
1 { lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, Security, libiconv }:
3 rustPlatform.buildRustPackage rec {
4   pname = "gleam";
5   version = "0.14.4";
7   src = fetchFromGitHub {
8     owner = "gleam-lang";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-iW4mH9zLJzD+E+H/b0NAbPWzfSbDmRpirDwrLlyZppI=";
12   };
14   nativeBuildInputs = [ pkg-config ];
16   buildInputs = [ openssl ] ++
17     lib.optionals stdenv.isDarwin [ Security libiconv ];
19   cargoSha256 = "sha256-ErLwrve2Fpyg9JaH3y7VIYuFcOPVP++XAIrRvv5dGm0=";
21   meta = with lib; {
22     description = "A statically typed language for the Erlang VM";
23     homepage = "https://gleam.run/";
24     license = licenses.asl20;
25     maintainers = teams.beam.members;
26   };