mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
Compile wraptest with O3, run hooks
This commit is contained in:
@ -4,13 +4,13 @@
|
|||||||
, autoPatchelfHook
|
, autoPatchelfHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.1.0-e7a96089";
|
version = "0.1.0-e7a96089";
|
||||||
pname = "wraptest";
|
pname = "wraptest";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mattiase";
|
owner = "mattiase";
|
||||||
repo = "wraptest";
|
repo = pname;
|
||||||
rev = "e7a960892873035d2ef56b9770c32b43635821fb";
|
rev = "e7a960892873035d2ef56b9770c32b43635821fb";
|
||||||
sha256 = "sha256-+v6xpPCmvKfsDkPmBSv6+6yAg2Kzame5Zwx2WKjQreI=";
|
sha256 = "sha256-+v6xpPCmvKfsDkPmBSv6+6yAg2Kzame5Zwx2WKjQreI=";
|
||||||
};
|
};
|
||||||
@ -20,12 +20,20 @@ stdenv.mkDerivation {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
gcc -o wraptest wraptest.c
|
runHook preBuild
|
||||||
|
|
||||||
|
cc -O3 -o wraptest wraptest.c
|
||||||
|
|
||||||
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp wraptest $out/bin
|
cp wraptest $out/bin/
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Reference in New Issue
Block a user