treewide: apply nixpkgs-fmt

This commit is contained in:
Tobias Happ 2022-09-03 17:10:19 +02:00
parent 241632822a
commit 7d1ed0fbaa
23 changed files with 64 additions and 61 deletions

View file

@ -23,10 +23,12 @@ let
];
mkActivationCmds = activation: concatStringsSep "\n" (
mapAttrsToList (name: value: ''
mapAttrsToList
(name: value: ''
noteEcho "Activating ${name}"
${value}
'') activation
'')
activation
);
activationScript = pkgs.writeScript "activation-script" ''

View file

@ -12,9 +12,7 @@ in
###### interface
options = {
};
options = { };
###### implementation

View file

@ -58,7 +58,8 @@ let
target = mkDefault name;
source = mkIf (config.text != null) (
let name' = "etc-" + baseNameOf name;
in mkDefault (pkgs.writeText name' config.text));
in mkDefault (pkgs.writeText name' config.text)
);
};
}

View file

@ -8,9 +8,7 @@ with lib;
###### interface
options = {
};
options = { };
###### implementation

View file

@ -8,9 +8,7 @@ with lib;
###### interface
options = {
};
options = { };
###### implementation

View file

@ -40,10 +40,12 @@ let
name = "nixpkgs-config";
description = "nixpkgs config";
check = x:
let traceXIfNot = c:
let
traceXIfNot = c:
if c x then true
else lib.traceSeqN 1 x false;
in traceXIfNot isConfig;
in
traceXIfNot isConfig;
merge = args: fold (def: mergeConfig def.value) { };
};

View file

@ -1,7 +1,11 @@
# Copyright (c) 2019-2022, see AUTHORS. Licensed under MIT License, see LICENSE.
{ stdenv, fetchFromGitHub, talloc,
static ? true, outputBinaryName ? "proot-static" }:
{ stdenv
, fetchFromGitHub
, talloc
, static ? true
, outputBinaryName ? "proot-static"
}:
stdenv.mkDerivation {
pname = "proot-termux";