mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
nix: add wraptest
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
, tracy
|
||||
, vulkan-loader
|
||||
, vttest
|
||||
, wraptest
|
||||
, zig
|
||||
|
||||
, bzip2
|
||||
@ -35,6 +36,7 @@
|
||||
parallel
|
||||
tracy
|
||||
vttest
|
||||
wraptest
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
|
@ -9,6 +9,8 @@ final: prev: rec {
|
||||
|
||||
devShell = prev.callPackage ./devshell.nix { };
|
||||
|
||||
wraptest = prev.callPackage ./wraptest.nix { };
|
||||
|
||||
# zig we want to be the latest nightly since 0.9.0 is not released yet.
|
||||
zig = final.zigpkgs.master.latest;
|
||||
}
|
||||
|
31
nix/wraptest.nix
Normal file
31
nix/wraptest.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{ 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" ];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user