mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
50 lines
911 B
Nix
50 lines
911 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
meson,
|
|
ninja,
|
|
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
|
|
];
|
|
};
|
|
})
|