-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathflake.nix
42 lines (38 loc) · 1.09 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Use: nix develop
#
# To update the lock file, run:
# nix flake update
{
description = "ateam: The tool that helps optimize the code review process";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
ateam = pkgs.callPackage ./default.nix { };
in {
packages.default = ateam;
devShell = pkgs.mkShell {
buildInputs = with pkgs;
[
# rustup
# rustc
# libiconv
# pkg-config
# openssl
# rust-analyzer <-- This does not work. You need to run `rustup component add rust-analyzer`
# tools for ./maintenance.sh
cargo
cargo-udeps
cargo-outdated
cargo-audit
cargo-dist
cargo-release
clippy
] ++ ateam.buildInputs;
};
});
}