mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-09 23:03:26 +00:00
This makes `ucs-detect` available in our Nix environment so that we can run tests on our Unicode support. In the future, I'd like to modify our CI to run this too. This also adds a `./test/ucs-detect.sh` script that runs `ucs-detect` with consistent options that match the upstream test styles.
44 lines
813 B
Nix
44 lines
813 B
Nix
{
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoPatchelfHook,
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
version = "0.1.0-e7a96089";
|
|
pname = "wraptest";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mattiase";
|
|
repo = pname;
|
|
rev = "e7a960892873035d2ef56b9770c32b43635821fb";
|
|
sha256 = "sha256-+v6xpPCmvKfsDkPmBSv6+6yAg2Kzame5Zwx2WKjQreI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoPatchelfHook
|
|
];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
|
|
cc -O3 -o wraptest wraptest.c
|
|
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin
|
|
cp wraptest $out/bin/
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Test of DEC VT terminal line-wrapping semantics";
|
|
homepage = "https://github.com/mattiase/wraptest";
|
|
platforms = ["aarch64-linux" "i686-linux" "x86_64-linux"];
|
|
};
|
|
}
|