-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
54 lines (48 loc) · 1.46 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
43
44
45
46
47
48
49
50
51
52
53
54
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{ nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { system = system; };
in
{
formatter = pkgs.nixfmt-rfc-style;
devShells.default = pkgs.mkShell {
packages = with pkgs; [
rustc
cargo
clippy
pkg-config
openssl
rustfmt
rust-analyzer
xorg.libxcb
];
};
packages.default = pkgs.rustPlatform.buildRustPackage rec {
pname = "monitor-affinity";
version = "0.1.1";
src = pkgs.fetchFromGitHub {
owner = "davidmreed";
repo = pname;
rev = version;
hash = "sha256-kzJgrF7sTWOtzIafnpe9NaVD6e60xyCazSfHz7pGf5o=";
};
cargoHash = "sha256-DGOAlGkPCQB8/lk4jGPOCmL1/WC6lOhFwOY161j7jUc=";
nativeBuildInputs = with pkgs; [ xorg.libxcb ];
buildInputs = with pkgs; [ xorg.libxcb ];
meta = {
description = "Route bars and widgets to monitors based on criteria like \"largest\" or \"rightmost\".";
homepage = "https://github.com/davidmreed/monitor-affinity";
license = pkgs.lib.licenses.mit;
maintainers = [ ];
};
};
}
);
}