termpaint: init at 0.3.0

authored by laalsaas and committed by aleksana 8e014cc6 8cc7bfe6

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