Skip to content

Commit 5d3a844

Browse files
committed
nix: Reduce the usage of the with syntax
Due to readability/understandability issues and the hardness for static analyzers, the usage of the `with` syntax is generally discouraged nowadays.
1 parent 92680ee commit 5d3a844

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

default.nix

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ pkgs.stdenvNoCC.mkDerivation rec {
4141
fileset = gitTracked ./.;
4242
};
4343

44-
nativeBuildInputs = with pkgs; [
45-
maven
46-
makeWrapper
47-
graphviz
48-
] ++ pkgs.lib.optional buildGitHubPages (ruby.withPackages (pkgs: with pkgs; [
49-
github-pages
50-
jekyll-theme-cayman
44+
nativeBuildInputs = [
45+
pkgs.maven
46+
pkgs.makeWrapper
47+
pkgs.graphviz
48+
] ++ pkgs.lib.optional buildGitHubPages (pkgs.ruby.withPackages (rubyPkgs: [
49+
rubyPkgs.github-pages
50+
rubyPkgs.jekyll-theme-cayman
5151
]));
5252

5353
# Maven needs to download necessary dependencies which is impure because it
@@ -58,7 +58,7 @@ pkgs.stdenvNoCC.mkDerivation rec {
5858
inherit version;
5959
src = pkgs.lib.sourceByRegex ./. ["^pom.xml$" "^local-maven-repo(/.*)?$"];
6060

61-
nativeBuildInputs = with pkgs; [maven];
61+
nativeBuildInputs = [pkgs.maven];
6262

6363
buildPhase = ''
6464
runHook preBuild

0 commit comments

Comments
 (0)