mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
first attempt at a derivation
This commit is contained in:
@ -32,6 +32,8 @@
|
|||||||
let pkgs = import nixpkgs { inherit overlays system; };
|
let pkgs = import nixpkgs { inherit overlays system; };
|
||||||
in rec {
|
in rec {
|
||||||
devShell = pkgs.devShell;
|
devShell = pkgs.devShell;
|
||||||
|
packages.ghostty = pkgs.ghostty;
|
||||||
|
defaultPackage = packages.ghostty;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ final: prev: rec {
|
|||||||
#
|
#
|
||||||
|
|
||||||
devShell = prev.callPackage ./devshell.nix { };
|
devShell = prev.callPackage ./devshell.nix { };
|
||||||
|
ghostty = prev.callPackage ./package.nix { };
|
||||||
|
|
||||||
wraptest = prev.callPackage ./wraptest.nix { };
|
wraptest = prev.callPackage ./wraptest.nix { };
|
||||||
|
|
||||||
|
35
nix/package.nix
Normal file
35
nix/package.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, zig
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "ghostty";
|
||||||
|
version = "0.1.0";
|
||||||
|
|
||||||
|
src = ./..;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ zig ];
|
||||||
|
|
||||||
|
buildInputs = [];
|
||||||
|
|
||||||
|
dontConfigure = true;
|
||||||
|
|
||||||
|
# preBuild = ''
|
||||||
|
# export HOME=$TMPDIR
|
||||||
|
# '';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
zig build -Drelease-safe --prefix $out install
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
outputs = [ "out" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/mitchellh/ghostty";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" ];
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user