nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python3,
4 fetchFromGitHub,
5 xrandr,
6 srandrd,
7 feh,
8}:
9
10python3.pkgs.buildPythonApplication rec {
11 pname = "screenconfig";
12 version = "0.1.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "jceb";
17 repo = "screenconfig";
18 tag = "v${version}";
19 hash = "sha256-X1Mz8UbOOW/4LM9IZoG/kbwv2G0EppTsacKapQMChkc=";
20 };
21 build-system = [ python3.pkgs.setuptools ];
22 dependencies = with python3.pkgs; [
23 toml
24 ];
25
26 propagatedBuildInputs = [
27 xrandr
28 srandrd
29 feh
30 ];
31
32 meta = {
33 description = "Automatic configuration of connected screens/monitors";
34 homepage = "https://github.com/jceb/screenconfig";
35 platforms = lib.platforms.linux;
36 license = lib.licenses.mit;
37 maintainers = with lib.maintainers; [ jceb ];
38 mainProgram = "screenconfig";
39 };
40}