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";