ghostty/nix/wraptest.nix
Mitchell Hashimoto 473f749f00 nix: add wraptest
2022-07-25 08:18:35 -07:00

32 lines
730 B
Nix

{ lib, stdenv, fetchFromGitHub, autoPatchelfHook }:
stdenv.mkDerivation rec {
version = "0.1.0-e7a96089";
pname = "wraptest";
src = fetchFromGitHub {
owner = "mattiase";
repo = "wraptest";
rev = "e7a960892873035d2ef56b9770c32b43635821fb";
sha256 = "sha256-+v6xpPCmvKfsDkPmBSv6+6yAg2Kzame5Zwx2WKjQreI=";
};
nativeBuildInputs = [
autoPatchelfHook
];
buildPhase = ''
gcc -o wraptest wraptest.c
'';
installPhase = ''
mkdir -p $out/bin
cp wraptest $out/bin
'';
meta = with lib; {
description = "Test of DEC VT terminal line-wrapping semantics";
homepage = "https://github.com/mattiase/wraptest";
platforms = [ "aarch64-linux" "i686-linux" "x86_64-linux" ];
};
}