From 249d4117e01e6f749658145aec340c8bc4d79562 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Tue, 20 Apr 2021 21:33:03 +0200 Subject: [PATCH] nix(style): reorder tools in default.nix --- default.nix | 58 +++++++++++++++++++++++++++-------------------------- 1 file changed, 30 insertions(+), 28 deletions(-) diff --git a/default.nix b/default.nix index 84e1d53cc..05cc88508 100644 --- a/default.nix +++ b/default.nix @@ -102,19 +102,43 @@ rec { ) ); + env = + postgrest.env; + + # Tooling for analyzing Haskell imports and exports. + hsie = + pkgs.callPackage nix/hsie { + ghcWithPackages = pkgs.haskell.packages."${compiler}".ghcWithPackages; + }; + + ### Tools + + # Development tools. + devtools = + pkgs.callPackage nix/tools/devtools.nix { inherit tests style devCabalOptions hsie; }; + # Docker images and loading script. docker = pkgs.callPackage nix/tools/docker { postgrest = postgrestStatic; }; - env = - postgrest.env; + # Script for running memory tests. + memory = + pkgs.callPackage nix/tools/memory.nix { inherit postgrestProfiled withTools; }; # Utility for updating the pinned version of Nixpkgs. nixpkgsTools = pkgs.callPackage nix/tools/nixpkgstools.nix { }; - withTools = - pkgs.callPackage nix/tools/withtools.nix { inherit postgresqlVersions; }; + # Scripts for publishing new releases. + release = + pkgs.callPackage nix/tools/release { + inherit docker; + postgrest = postgrestStatic; + }; + + # Linting and styling tools. + style = + pkgs.callPackage nix/tools/style.nix { }; # Scripts for running tests. tests = @@ -124,28 +148,6 @@ rec { hpc-codecov = pkgs.haskell.packages."${compiler}".hpc-codecov; }; - # Script for running memory tests. - memory = - pkgs.callPackage nix/tools/memory.nix { inherit postgrestProfiled withTools; }; - - # Linting and styling tools. - style = - pkgs.callPackage nix/tools/style.nix { }; - - # Tooling for analyzing Haskell imports and exports. - hsie = - pkgs.callPackage nix/hsie { - ghcWithPackages = pkgs.haskell.packages."${compiler}".ghcWithPackages; - }; - - # Development tools. - devtools = - pkgs.callPackage nix/tools/devtools.nix { inherit tests style devCabalOptions hsie; }; - - # Scripts for publishing new releases. - release = - pkgs.callPackage nix/tools/release { - inherit docker; - postgrest = postgrestStatic; - }; + withTools = + pkgs.callPackage nix/tools/withtools.nix { inherit postgresqlVersions; }; }