Add nix flake for dev shell

This commit is contained in:
Marcin Kulik
2024-02-14 21:54:21 +01:00
parent a294a52094
commit 6d53b3b8e8
3 changed files with 87 additions and 0 deletions

24
flake.nix Normal file
View File

@@ -0,0 +1,24 @@
{
description = "Terminal session recorder";
inputs = {
nixpkgs.url = github:nixos/nixpkgs/nixpkgs-unstable;
flake-utils.url = github:numtide/flake-utils;
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem
(system:
let pkgs = nixpkgs.legacyPackages.${system}; in
{
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
rustup
] ++ (lib.optionals stdenv.isDarwin [
libiconv
darwin.apple_sdk.frameworks.Foundation
]);
};
}
);
}