medit/flake.nix

34 lines
1022 B
Nix
Raw Normal View History

2022-08-16 01:42:40 +00:00
{
description = "Description for the project";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs.follows = "nixpkgs";
rust.url = "github:oxalica/rust-overlay";
rust.inputs.nixpkgs.follows = "nixpkgs";
nci.url = "github:yusdacra/nix-cargo-integration";
nci.inputs.nixpkgs.follows = "nixpkgs";
nci.inputs.rust-overlay.follows = "rust";
};
outputs = { self, flake-parts, ... }@inputs:
flake-parts.lib.mkFlake { inherit self; } {
imports = [{
config.perSystem = { system, ... }: {
config._module.args.pkgs = (import inputs.nixpkgs {
inherit system;
overlays = [ inputs.rust.overlays.default ];
});
};
}];
systems = inputs.nixpkgs.lib.systems.flakeExposed;
perSystem = { config, self', inputs', pkgs, system, ... }: { };
flake = inputs.nci.lib.makeOutputs {
root = ./.;
};
};
}