add flake.nix

This commit is contained in:
Daylin Morgan 2024-02-20 05:39:59 -06:00
parent ed7ada491b
commit bd6420667e
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

23
flake.nix Normal file
View file

@ -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];
};
});
};
}