From e1bb47ff02475065156bd1f6687b27259045d3ef Mon Sep 17 00:00:00 2001 From: masklinn Date: Wed, 19 Jun 2024 20:59:04 +0200 Subject: [PATCH] Basic flake.nix --- flake.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 flake.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..9a400ea --- /dev/null +++ b/flake.nix @@ -0,0 +1,21 @@ +{ + description = "C++ implementation of ua-parser"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + }; + + outputs = inputs@{ flake-parts, ... }: + flake-parts.lib.mkFlake { inherit inputs; } { + systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ]; + perSystem = { config, self', inputs', pkgs, system, ... }: { + devShells.default = pkgs.mkShell { + packages = with pkgs; [ + cmake + re2 + libyamlcpp + ]; + }; + }; + }; +}