mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
treewide: apply nixpkgs-fmt
This commit is contained in:
parent
241632822a
commit
7d1ed0fbaa
23 changed files with 64 additions and 61 deletions
|
|
@ -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" ''
|
||||
|
|
|
|||
|
|
@ -12,9 +12,7 @@ in
|
|||
|
||||
###### interface
|
||||
|
||||
options = {
|
||||
|
||||
};
|
||||
options = { };
|
||||
|
||||
|
||||
###### implementation
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,9 +8,7 @@ with lib;
|
|||
|
||||
###### interface
|
||||
|
||||
options = {
|
||||
|
||||
};
|
||||
options = { };
|
||||
|
||||
|
||||
###### implementation
|
||||
|
|
|
|||
|
|
@ -8,9 +8,7 @@ with lib;
|
|||
|
||||
###### interface
|
||||
|
||||
options = {
|
||||
|
||||
};
|
||||
options = { };
|
||||
|
||||
|
||||
###### implementation
|
||||
|
|
|
|||
|
|
@ -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) { };
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue