Something went wrong. Try again.
Parser for the Nix language written in Gleam
Something went wrong. Try again.
nix_parser flake.nix
1.5 kB · 60 lines
Nix
at main
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ description = "Parser for the Nix language";
inputs = { nixpkgs.url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.zst"; flake-parts.url = "github:hercules-ci/flake-parts"; zeiss.url = "git+ssh://forgejo@git.ginkogruen.net/ginkogruen/zeiss"; };
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" ];
perSystem = { pkgs, system, self', ... }: { packages.default = self'.packages.nix_parser; packages.nix_parser = inputs.zeiss.lib.${system}.buildGleamApplication { pname = "nix_parser"; version = "1.0.0"; src = ./.;
doCheck = true; compileNoDev = false; # As `nix_parser` is a library it doesn't have a `main()` function in `src/nix_parser.gleam`. evalModule = "nix_parser_dev";
erlang = pkgs.beam29Packages.erlang;
zeissNix = import ./zeiss.nix; };
devShells.default = pkgs.mkShell { packages = with pkgs; [ # Gleam tooling gleam beam29Packages.erlang
# Nix tooling nixd nixfmt
# Other inputs.zeiss.packages.${system}.zeiss ]; }; }; };}