From: Scott Worley Date: Fri, 2 Jan 2026 07:00:28 +0000 (-0800) Subject: 25.11: Formatting: nixfmt-classic → nixfmt-rfc-style X-Git-Tag: v3.3.3~5 X-Git-Url: http://git.scottworley.com/pinch/commitdiff_plain/5f16846e67119dcd28dfc66327a10cf2f1119e20?ds=inline;hp=8ec8e7607393df1f7be14ab20e5dc1b3a8e1832d 25.11: Formatting: nixfmt-classic → nixfmt-rfc-style --- diff --git a/default.nix b/default.nix index 43f4bef..35299ae 100644 --- a/default.nix +++ b/default.nix @@ -1,13 +1,23 @@ -{ pkgs ? import { }, lint ? false }: +{ + pkgs ? import { }, + lint ? false, +}: let - checkInputsAreNative = pkgs.lib.hasInfix "nativeCheckInputs" - (builtins.readFile ); - checkInputsName = - if checkInputsAreNative then "nativeCheckInputs" else "checkInputs"; + checkInputsAreNative = pkgs.lib.hasInfix "nativeCheckInputs" ( + builtins.readFile + ); + checkInputsName = if checkInputsAreNative then "nativeCheckInputs" else "checkInputs"; git-cache-fallback = - { buildPythonPackage, setuptools, fetchgit, git, backoff, mypy, }: + { + buildPythonPackage, + setuptools, + fetchgit, + git, + backoff, + mypy, + }: buildPythonPackage rec { pname = "git-cache"; version = "1.5.0"; @@ -19,32 +29,55 @@ let pyproject = true; build-system = [ setuptools ]; propagatedBuildInputs = [ backoff ]; - "${checkInputsName}" = [ git mypy ]; + "${checkInputsName}" = [ + git + mypy + ]; doCheck = true; checkPhase = "./test.sh"; }; -in pkgs.python3Packages.callPackage ({ lib, buildPythonPackage, setuptools, nix - , git, autopep8, mypy, pylint, git-cache, }: - buildPythonPackage rec { - pname = "pinch"; - version = "3.3.2"; - src = lib.cleanSource ./.; - pyproject = true; - build-system = [ setuptools ]; - propagatedBuildInputs = [ git-cache ]; - "${checkInputsName}" = [ nix git mypy ] - ++ lib.optionals lint [ autopep8 pylint ]; - doCheck = true; - checkPhase = "./test.sh"; - meta = { - description = "A replacement for `nix-channel --update`"; - homepage = "https://git.scottworley.com/pinch"; - license = pkgs.lib.licenses.gpl3; - maintainers = with pkgs.lib.maintainers; [ chkno ]; - }; - }) { +in +pkgs.python3Packages.callPackage + ( + { + lib, + buildPythonPackage, + setuptools, + nix, + git, + autopep8, + mypy, + pylint, + git-cache, + }: + buildPythonPackage rec { + pname = "pinch"; + version = "3.3.2"; + src = lib.cleanSource ./.; + pyproject = true; + build-system = [ setuptools ]; + propagatedBuildInputs = [ git-cache ]; + "${checkInputsName}" = [ + nix + git + mypy + ] + ++ lib.optionals lint [ + autopep8 + pylint + ]; + doCheck = true; + checkPhase = "./test.sh"; + meta = { + description = "A replacement for `nix-channel --update`"; + homepage = "https://git.scottworley.com/pinch"; + license = pkgs.lib.licenses.gpl3; + maintainers = with pkgs.lib.maintainers; [ chkno ]; + }; + } + ) + { git-cache = - pkgs.python3Packages.git-cache or (pkgs.python3Packages.callPackage - git-cache-fallback { }); + pkgs.python3Packages.git-cache or (pkgs.python3Packages.callPackage git-cache-fallback { }); }