-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathflake.nix
36 lines (36 loc) · 1.2 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
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/master";
flake-utils.url = "github:numtide/flake-utils/master";
rust-overlay.url = "github:oxalica/rust-overlay/master";
rust-overlay.inputs.nixpkgs.follows = "nixpkgs";
rust-overlay.inputs.flake-utils.follows = "flake-utils";
};
outputs = { self, nixpkgs, rust-overlay, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
overlays = [ rust-overlay.overlay ];
pkgs = import nixpkgs { inherit system overlays; };
my-rust = pkgs.rust-bin.nightly.latest.default.override {
extensions = [ "rust-src" "llvm-tools-preview" ];
};
in {
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
linuxPackages.perf
my-rust
cargo-watch
cargo-bloat
cargo-binutils
cargo-deps
gdb
gnuplot
scdoc
xtruss # This is _really_ good; it's strace for xorg calls, with all that implies
xdotool # has subcommands like "getactivewindow" that are useful
xorg.xwininfo
];
};
});
}