From 6db9eaad8e78f882ae44a28edcc4d11d2ffd5e28 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 14 Mar 2023 21:43:19 +0100 Subject: Re-format with nixpkgs-fmt --- user/packages/lumen/default.nix | 12 +- user/packages/node2nix/default.nix | 24 +- user/packages/node2nix/node-env.nix | 696 ++++++++++++++++--------------- user/packages/node2nix/node-packages.nix | 144 +++---- 4 files changed, 445 insertions(+), 431 deletions(-) (limited to 'user/packages') diff --git a/user/packages/lumen/default.nix b/user/packages/lumen/default.nix index 91e1b726..85520a2f 100644 --- a/user/packages/lumen/default.nix +++ b/user/packages/lumen/default.nix @@ -1,9 +1,9 @@ -{ - stdenv, - lib, - go, - buildGoPackage, - fetchFromGitHub, +{ stdenv +, lib +, go +, buildGoPackage +, fetchFromGitHub +, }: buildGoPackage rec { pname = "lumen"; diff --git a/user/packages/node2nix/default.nix b/user/packages/node2nix/default.nix index 09eea0fe..13d7a1e2 100644 --- a/user/packages/node2nix/default.nix +++ b/user/packages/node2nix/default.nix @@ -1,12 +1,12 @@ # This file has been generated by node2nix 1.11.1. Do not edit! -{ - pkgs ? - import { - inherit system; - }, - system ? builtins.currentSystem, - nodejs ? pkgs."nodejs-18_x", -}: let +{ pkgs ? import { + inherit system; + } +, system ? builtins.currentSystem +, nodejs ? pkgs."nodejs-18_x" +, +}: +let nodeEnv = import ./node-env.nix { inherit (pkgs) stdenv lib python2 runCommand writeTextFile writeShellScript; inherit pkgs nodejs; @@ -16,7 +16,7 @@ else null; }; in - import ./node-packages.nix { - inherit (pkgs) fetchurl nix-gitignore stdenv lib fetchgit; - inherit nodeEnv; - } +import ./node-packages.nix { + inherit (pkgs) fetchurl nix-gitignore stdenv lib fetchgit; + inherit nodeEnv; +} diff --git a/user/packages/node2nix/node-env.nix b/user/packages/node2nix/node-env.nix index b81347da..16720d90 100644 --- a/user/packages/node2nix/node-env.nix +++ b/user/packages/node2nix/node-env.nix @@ -1,15 +1,16 @@ # This file originates from node2nix -{ - lib, - stdenv, - nodejs, - python2, - pkgs, - libtool, - runCommand, - writeTextFile, - writeShellScript, -}: let +{ lib +, stdenv +, nodejs +, python2 +, pkgs +, libtool +, runCommand +, writeTextFile +, writeShellScript +, +}: +let # Workaround to cope with utillinux in Nixpkgs 20.09 and util-linux in Nixpkgs master utillinux = if pkgs ? utillinux @@ -22,7 +23,7 @@ else python2; # Create a tar wrapper that filters all the 'Ignoring unknown extended header keyword' noise - tarWrapper = runCommand "tarWrapper" {} '' + tarWrapper = runCommand "tarWrapper" { } '' mkdir -p $out/bin cat > $out/bin/tar < $out/bin/shell < $out/bin/shell <