-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
53 lines (48 loc) · 1.44 KB
/
flake.nix
File metadata and controls
53 lines (48 loc) · 1.44 KB
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
{
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
libxcb
];
};
packages.default = pkgs.rustPlatform.buildRustPackage rec {
pname = "monitor-affinity";
version = "0.1.2";
src = pkgs.fetchFromGitHub {
owner = "davidmreed";
repo = pname;
rev = version;
hash = "sha256-skK0WvYKhSj9+pD97Y91PDrRDWlBqnqvYXw1VDU3Hco=";
};
cargoHash = "sha256-uH2jQyxY5xBxGvHvTqiS20pKUlaUroDvxsaeuaKf63M=";
nativeBuildInputs = with pkgs; [ libxcb ];
buildInputs = with pkgs; [ 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 = [ ];
};
};
}
);
}