initial commit
This commit is contained in:
commit
4a08b87af4
20 changed files with 967 additions and 0 deletions
46
flake.nix
Normal file
46
flake.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
description = "Zig Template";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
...
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
nativeBuildInputs = with pkgs; [
|
||||
zig
|
||||
zls
|
||||
python312
|
||||
];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
gdb
|
||||
lldb
|
||||
nixfmt
|
||||
];
|
||||
in
|
||||
{
|
||||
devShells.default = pkgs.mkShell { inherit nativeBuildInputs buildInputs; };
|
||||
|
||||
packages.default = pkgs.stdenv.mkDerivation {
|
||||
pname = "Owa";
|
||||
version = "0.0.1";
|
||||
src = ./.;
|
||||
|
||||
nativeBuildInputs = nativeBuildInputs ++ [
|
||||
pkgs.zig.hook
|
||||
];
|
||||
inherit buildInputs;
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue