From ed9d23079539413d667b1e006a9479e061805b05 Mon Sep 17 00:00:00 2001 From: Jan Christoph Ebersbach Date: Mon, 12 Aug 2024 09:16:39 +0200 Subject: [PATCH] screenconfig: init at 0.1.0 Co-authored-by: Leah Amelia Chen --- pkgs/by-name/sc/screenconfig/package.nix | 40 ++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/sc/screenconfig/package.nix diff --git a/pkgs/by-name/sc/screenconfig/package.nix b/pkgs/by-name/sc/screenconfig/package.nix new file mode 100644 index 000000000000..5c3942f08057 --- /dev/null +++ b/pkgs/by-name/sc/screenconfig/package.nix @@ -0,0 +1,40 @@ +{ + lib, + python3, + fetchFromGitHub, + xrandr, + srandrd, + feh, +}: + +python3.pkgs.buildPythonApplication rec { + pname = "screenconfig"; + version = "0.1.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "jceb"; + repo = "screenconfig"; + tag = "v${version}"; + hash = "sha256-X1Mz8UbOOW/4LM9IZoG/kbwv2G0EppTsacKapQMChkc="; + }; + build-system = [ python3.pkgs.setuptools ]; + dependencies = with python3.pkgs; [ + toml + ]; + + propagatedBuildInputs = [ + xrandr + srandrd + feh + ]; + + meta = { + description = "Automatic configuration of connected screens/monitors"; + homepage = "https://github.com/jceb/screenconfig"; + platforms = lib.platforms.linux; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ jceb ]; + mainProgram = "screenconfig"; + }; +}