From bd6420667eb16e11e33f2c4d6064fc55a8d6f271 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 20 Feb 2024 05:39:59 -0600 Subject: [PATCH] add flake.nix --- flake.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 flake.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..d05ed9e --- /dev/null +++ b/flake.nix @@ -0,0 +1,23 @@ +{ + description = "git repos"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + }; + + outputs = { + self, + nixpkgs, + }: let + inherit (nixpkgs.lib) genAttrs makeBinPath; + eachSystem = fn: + genAttrs [ "x86_64-linux" ] + (system: fn nixpkgs.legacyPackages.${system}); + in { + devShells = eachSystem (_: pkgs: { + default = pkgs.mkShell { + buildInputs = with pkgs; [nim openssl]; + }; + }); + }; +}