2021-04-08 19:10:55 +02:00
|
|
|
# This file is pretty general, and you can adapt it in your project replacing
|
|
|
|
# only `name` and `description` below.
|
|
|
|
|
2021-04-07 00:17:50 +02:00
|
|
|
{
|
2021-04-10 18:10:57 +02:00
|
|
|
description = "My awesome Rust project";
|
2021-04-07 00:17:50 +02:00
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2021-04-07 05:25:05 +02:00
|
|
|
flake-compat = {
|
|
|
|
url = "github:edolstra/flake-compat";
|
|
|
|
flake = false;
|
|
|
|
};
|
2022-05-08 23:00:33 +02:00
|
|
|
nci.url = "github:yusdacra/nix-cargo-integration";
|
|
|
|
nci.inputs.nixpkgs.follows = "nixpkgs";
|
2021-04-07 00:17:50 +02:00
|
|
|
};
|
|
|
|
|
2022-05-08 23:00:33 +02:00
|
|
|
outputs = { self, nixpkgs, nci, ... }:
|
|
|
|
nci.lib.makeOutputs {
|
|
|
|
# Documentation and examples:
|
|
|
|
# https://github.com/yusdacra/rust-nix-templater/blob/master/template/flake.nix
|
|
|
|
root = ./.;
|
|
|
|
overrides = {
|
|
|
|
shell = common: prev: {
|
|
|
|
packages = prev.packages ++ [
|
|
|
|
common.pkgs.rust-analyzer
|
|
|
|
common.pkgs.cargo-watch
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2021-04-07 00:17:50 +02:00
|
|
|
}
|