tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
termpaint: init at 0.3.0
authored by
laalsaas
and committed by
aleksana
1 year ago
8e014cc6
8cc7bfe6
+75
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
te
termpaint
0001-meson.build-use-prefix.patch
package.nix
+25
pkgs/by-name/te/termpaint/0001-meson.build-use-prefix.patch
···
1
1
+
From 6275687b748bed9a6148164b085b82840b5e09c6 Mon Sep 17 00:00:00 2001
2
2
+
From: laalsaas <laalsaas@systemli.org>
3
3
+
Date: Sun, 18 Aug 2024 11:59:13 +0200
4
4
+
Subject: [PATCH] meson.build: use-prefix
5
5
+
6
6
+
---
7
7
+
meson.build | 2 +-
8
8
+
1 file changed, 1 insertion(+), 1 deletion(-)
9
9
+
10
10
+
diff --git a/meson.build b/meson.build
11
11
+
index 8a0c39c..5eb2435 100644
12
12
+
--- a/meson.build
13
13
+
+++ b/meson.build
14
14
+
@@ -111,7 +111,7 @@ main_lib_files = [
15
15
+
]
16
16
+
17
17
+
main_lib_cargs += '-DTERMPAINT_RESCUE_EMBEDDED'
18
18
+
-main_lib_cargs += '-DTERMPAINT_RESCUE_PATH="@0@"'.format(get_option('ttyrescue-path'))
19
19
+
+main_lib_cargs += '-DTERMPAINT_RESCUE_PATH="@0@"'.format(get_option('prefix') / get_option('ttyrescue-path'))
20
20
+
main_lib = library('termpaint', main_lib_files,
21
21
+
dependencies: lib_rt,
22
22
+
c_args: main_lib_cargs,
23
23
+
--
24
24
+
2.45.1
25
25
+
+50
pkgs/by-name/te/termpaint/package.nix
···
1
1
+
{
2
2
+
stdenv,
3
3
+
lib,
4
4
+
fetchFromGitHub,
5
5
+
meson,
6
6
+
ninja,
7
7
+
cmake,
8
8
+
pkg-config,
9
9
+
python3,
10
10
+
}:
11
11
+
stdenv.mkDerivation (final: {
12
12
+
name = "termpaint";
13
13
+
version = "0.3.0";
14
14
+
15
15
+
src = fetchFromGitHub {
16
16
+
owner = "termpaint";
17
17
+
repo = "termpaint";
18
18
+
rev = final.version;
19
19
+
hash = "sha256-AsbUJjz51pedmemI0racMgWRzpbIeNJrK/walFUniR4=";
20
20
+
};
21
21
+
22
22
+
patches = [ ./0001-meson.build-use-prefix.patch ];
23
23
+
24
24
+
nativeBuildInputs = [
25
25
+
meson
26
26
+
ninja
27
27
+
pkg-config
28
28
+
python3
29
29
+
];
30
30
+
31
31
+
mesonFlags = [
32
32
+
"-Dttyrescue-fexec-blob=false"
33
33
+
"-Dtools-path=libexec/"
34
34
+
"-Dttyrescue-path=libexec/"
35
35
+
"-Dttyrescue-install=true"
36
36
+
];
37
37
+
38
38
+
doCheck = true;
39
39
+
40
40
+
meta = {
41
41
+
description = "Low level terminal interface library";
42
42
+
homepage = "https://github.com/termpaint/termpaint";
43
43
+
platforms = lib.platforms.unix;
44
44
+
license = lib.licenses.boost;
45
45
+
maintainers = with lib.maintainers; [
46
46
+
istoph
47
47
+
textshell
48
48
+
];
49
49
+
};
50
50
+
})