From 72b6eada2d8c9eada0b3b68e40725336e8aaabfa Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sat, 28 Sep 2024 13:49:57 -0400 Subject: [PATCH] nixpkgs-review: format with nixfmt --- .../nixpkgs-review/default.nix | 51 +++++++++++-------- 1 file changed, 29 insertions(+), 22 deletions(-) diff --git a/pkgs/tools/package-management/nixpkgs-review/default.nix b/pkgs/tools/package-management/nixpkgs-review/default.nix index 3d119f6b846a..34cd5cd2d41b 100644 --- a/pkgs/tools/package-management/nixpkgs-review/default.nix +++ b/pkgs/tools/package-management/nixpkgs-review/default.nix @@ -1,17 +1,18 @@ -{ lib -, python3 -, fetchFromGitHub +{ + lib, + python3, + fetchFromGitHub, -, installShellFiles -, bubblewrap -, nix-output-monitor -, cacert -, git -, nix + installShellFiles, + bubblewrap, + nix-output-monitor, + cacert, + git, + nix, -, withAutocomplete ? true -, withSandboxSupport ? false -, withNom ? false + withAutocomplete ? true, + withSandboxSupport ? false, + withNom ? false, }: python3.pkgs.buildPythonApplication rec { @@ -26,20 +27,23 @@ python3.pkgs.buildPythonApplication rec { hash = "sha256-dRTKE8gkV298ZmMokyy3Ufer/Lp1GQYdEhIBoLhloEQ="; }; - nativeBuildInputs = [ - installShellFiles - python3.pkgs.setuptools - ] ++ lib.optionals withAutocomplete [ - python3.pkgs.argcomplete - ]; + nativeBuildInputs = + [ + installShellFiles + python3.pkgs.setuptools + ] + ++ lib.optionals withAutocomplete [ + python3.pkgs.argcomplete + ]; propagatedBuildInputs = [ python3.pkgs.argcomplete ]; makeWrapperArgs = let - binPath = [ nix git ] - ++ lib.optional withSandboxSupport bubblewrap - ++ lib.optional withNom nix-output-monitor; + binPath = [ + nix + git + ] ++ lib.optional withSandboxSupport bubblewrap ++ lib.optional withNom nix-output-monitor; in [ "--prefix PATH : ${lib.makeBinPath binPath}" @@ -65,6 +69,9 @@ python3.pkgs.buildPythonApplication rec { homepage = "https://github.com/Mic92/nixpkgs-review"; license = licenses.mit; mainProgram = "nixpkgs-review"; - maintainers = with maintainers; [ figsoda mic92 ]; + maintainers = with maintainers; [ + figsoda + mic92 + ]; }; }