Initial commit
This commit is contained in:
commit
f12d41e580
9 changed files with 1953 additions and 0 deletions
40
flake.nix
Normal file
40
flake.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
description = "A Java class file parser written in Zig";
|
||||
|
||||
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
|
||||
];
|
||||
|
||||
buildInputs = with pkgs; [];
|
||||
in {
|
||||
devShells.default = pkgs.mkShell { inherit nativeBuildInputs buildInputs; };
|
||||
|
||||
packages.default = pkgs.stdenv.mkDerivation {
|
||||
pname = "zig-class-parser";
|
||||
version = "0.0.0";
|
||||
src = ./.;
|
||||
|
||||
nativeBuildInputs =
|
||||
nativeBuildInputs
|
||||
++ [
|
||||
pkgs.zig.hook
|
||||
];
|
||||
inherit buildInputs;
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue