rust-nix-template/flake.nix

32 lines
847 B
Nix
Raw Normal View History

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;
};
nci.url = "github:yusdacra/nix-cargo-integration";
nci.inputs.nixpkgs.follows = "nixpkgs";
2021-04-07 00:17:50 +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
}