-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathflake.nix
53 lines (46 loc) · 1.51 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
{
description = "An output management utility for the sway Wayland compositor, inspired by wdisplays and wlay.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = inputs@{ self, flake-parts, nixpkgs, ... }:
flake-parts.lib.mkFlake {inherit inputs;} {
# TODO: This probably works on more linux architectures but I haven't tested them
systems = ["x86_64-linux"];
imports = [];
perSystem = { config, inputs', pkgs, system, ... }:
{
packages = rec {
default = nwg-displays;
nwg-displays = pkgs.python3Packages.buildPythonApplication
rec {
pname = "nwg-displays";
version = "0.1.4";
doCheck = false;
src = self;
nativeBuildInputs = [
pkgs.wrapGAppsHook
pkgs.gobject-introspection
];
buildInputs = with pkgs; [
gtk3
];
propagatedBuildInputs = with pkgs; [
pango
gtk-layer-shell
gdk-pixbuf
atk
python3Packages.i3ipc
python3Packages.pygobject3
python3Packages.gst-python
];
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}");
'';
};
};
};
};
}