about summary refs log tree commit diff
path: root/pkgs/by-name/te/termpaint/package.nix
blob: acd730dcf5bca55857ded5035a594db8186c09aa (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
46
47
48
49
50
{
  stdenv,
  lib,
  fetchFromGitHub,
  meson,
  ninja,
  cmake,
  pkg-config,
  python3,
}:
stdenv.mkDerivation (final: {
  name = "termpaint";
  version = "0.3.0";

  src = fetchFromGitHub {
    owner = "termpaint";
    repo = "termpaint";
    rev = final.version;
    hash = "sha256-AsbUJjz51pedmemI0racMgWRzpbIeNJrK/walFUniR4=";
  };

  patches = [ ./0001-meson.build-use-prefix.patch ];

  nativeBuildInputs = [
    meson
    ninja
    pkg-config
    python3
  ];

  mesonFlags = [
    "-Dttyrescue-fexec-blob=false"
    "-Dtools-path=libexec/"
    "-Dttyrescue-path=libexec/"
    "-Dttyrescue-install=true"
  ];

  doCheck = true;

  meta = {
    description = "Low level terminal interface library";
    homepage = "https://github.com/termpaint/termpaint";
    platforms = lib.platforms.unix;
    license = lib.licenses.boost;
    maintainers = with lib.maintainers; [
      istoph
      textshell
    ];
  };
})