2021-12-28 22:06:17 +00:00
|
|
|
{
|
|
|
|
description = "Project for syncing various home-system configuration files.";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-21.11";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in {
|
|
|
|
devShell = with pkgs; mkShell {
|
|
|
|
buildInputs = [
|
|
|
|
cargo
|
2021-12-29 13:15:19 +00:00
|
|
|
rls
|
2021-12-30 13:37:53 +00:00
|
|
|
libiconv
|
2021-12-28 22:06:17 +00:00
|
|
|
rustc
|
2021-12-29 13:15:19 +00:00
|
|
|
rustfmt
|
2021-12-30 13:37:53 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin (
|
|
|
|
with darwin.apple_sdk.frameworks; [ CoreServices ]);
|
2021-12-28 22:06:17 +00:00
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|