blob: a5cd89b75590588ca67160f96661ebfea4b18bab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{
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"];
};
}
|