Something went wrong. Try again.
Just a first repo to make sure I have tangled and everything set up correctly. I figured this would be a good way to say hello :)
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334{ description = "XML dev environment";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs }: let systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f { pkgs = import nixpkgs { inherit system; }; }); in { devShells = forAllSystems ({ pkgs }: { default = pkgs.mkShell { packages = with pkgs; [ libxml2 # xmllint xmlstarlet ]; }; });
apps = forAllSystems ({ pkgs }: { default = { type = "app"; program = toString (pkgs.writeShellScript "validate-xml" '' ${pkgs.libxml2}/bin/xmllint --noout ${./hello.xml} ${pkgs.libxml2}/bin/xmllint --format ${./hello.xml} ''); }; }); };}