about summary refs log tree commit diff
path: root/pkgs/development/tools/tarmac/default.nix
blob: 15e5ecfe10a8cf075c34c25c599e158300d02c65 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, pkg-config
, openssl_1_1
, Security
}:

rustPlatform.buildRustPackage rec {
  pname = "tarmac";
  version = "0.7.0";

  src = fetchFromGitHub {
    owner = "Roblox";
    repo = "tarmac";
    rev = "v${version}";
    sha256 = "sha256-O6qrAzGiAxiE56kpuvH/jDKHRXxHZ2SlDL5nwOOd4EU=";
  };

  cargoSha256 = "sha256-QnpowYv/TBXjPHK8z6KAzN3gSsfNOf9POybqsyugeWc=";

  nativeBuildInputs = [
    pkg-config
  ];

  buildInputs = [
    openssl_1_1
  ] ++ lib.optionals stdenv.isDarwin [
    Security
  ];

  meta = with lib; {
    description = "Resource compiler and asset manager for Roblox";
    longDescription = ''
      Tarmac is a resource compiler and asset manager for Roblox projects.
      It helps enable hermetic place builds when used with tools like Rojo.
    '';
    homepage = "https://github.com/Roblox/tarmac";
    downloadPage = "https://github.com/Roblox/tarmac/releases/tag/v${version}";
    changelog = "https://github.com/Roblox/tarmac/raw/v${version}/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ wackbyte ];
  };
}