From a6a17138c16d172b6e4e78393b54f3cf77c156fe Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Tue, 11 Jul 2023 21:07:59 +0100 Subject: [PATCH] autorandr: 1.13.3 -> 1.14 --- pkgs/tools/misc/autorandr/default.nix | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/pkgs/tools/misc/autorandr/default.nix b/pkgs/tools/misc/autorandr/default.nix index 8a364c50fe0f..53bc534e11e0 100644 --- a/pkgs/tools/misc/autorandr/default.nix +++ b/pkgs/tools/misc/autorandr/default.nix @@ -1,19 +1,26 @@ { lib , python3 -, python3Packages , fetchFromGitHub , systemd , xrandr , installShellFiles -, desktop-file-utils }: +, desktop-file-utils +}: python3.pkgs.buildPythonApplication rec { pname = "autorandr"; - version = "1.13.3"; + version = "1.14"; format = "other"; + src = fetchFromGitHub { + owner = "phillipberndt"; + repo = "autorandr"; + rev = "refs/tags/${version}"; + hash = "sha256-Ru3nQF0DB98rKSew6QtxAZQEB/9nVlIelNX3M7bNYHk="; + }; + nativeBuildInputs = [ installShellFiles desktop-file-utils ]; - propagatedBuildInputs = [ python3Packages.packaging ]; + propagatedBuildInputs = with python3.pkgs; [ packaging ]; buildPhase = '' substituteInPlace autorandr.py \ @@ -56,13 +63,6 @@ python3.pkgs.buildPythonApplication rec { runHook postInstall ''; - src = fetchFromGitHub { - owner = "phillipberndt"; - repo = "autorandr"; - rev = "refs/tags/${version}"; - sha256 = "sha256-3zWYOOVYpj+s7VKagnbI55MNshM5WtbCFD6q9tRCzes="; - }; - meta = with lib; { homepage = "https://github.com/phillipberndt/autorandr/"; description = "Automatically select a display configuration based on connected devices";