summaryrefslogtreecommitdiff
path: root/package.nix
blob: 84aac7959fc43c2cbb9172c82f30d286bebe03fb (plain)
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
{
  fontconfig,
  freetype,
  lib,
  libGL,
  libxkbcommon,
  makeWrapper,
  naersk,
  pkg-config,
  wayland,
  ...
}:
naersk.buildPackage rec {
  name = "rustty";
  src = ./.;
  buildInputs = [
    # fonts
    fontconfig
    freetype
    freetype.dev

    # wayland graphics
    libGL
    libxkbcommon
    wayland
  ];
  nativeBuildInputs = [
    pkg-config
    makeWrapper
  ];
  postInstall = ''
    wrapProgram "$out/bin/${meta.mainProgram}" --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath buildInputs}"
  '';
  meta = {
    mainProgram = "rustty";
    homepage = "https://mtgmonkey.net";
  };
}