31 lines
737 B
Nix
31 lines
737 B
Nix
|
{
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||
|
flake-utils.url = "github:numtide/flake-utils";
|
||
|
fenix = {
|
||
|
url = "github:nix-community/fenix";
|
||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||
|
};
|
||
|
};
|
||
|
outputs = { self, nixpkgs, flake-utils, fenix }:
|
||
|
flake-utils.lib.eachDefaultSystem
|
||
|
(system:
|
||
|
let
|
||
|
overlays = [ fenix.overlays.default ];
|
||
|
pkgs = import nixpkgs {
|
||
|
inherit system overlays;
|
||
|
};
|
||
|
in
|
||
|
with pkgs;
|
||
|
{
|
||
|
devShells.default = mkShell {
|
||
|
buildInputs = [
|
||
|
pkgs.fenix.stable.completeToolchain
|
||
|
pkg-config
|
||
|
openssl
|
||
|
];
|
||
|
};
|
||
|
}
|
||
|
);
|
||
|
}
|