mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-12-18 23:11:13 +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" (
|
mkActivationCmds = activation: concatStringsSep "\n" (
|
||||||
mapAttrsToList (name: value: ''
|
mapAttrsToList
|
||||||
|
(name: value: ''
|
||||||
noteEcho "Activating ${name}"
|
noteEcho "Activating ${name}"
|
||||||
${value}
|
${value}
|
||||||
'') activation
|
'')
|
||||||
|
activation
|
||||||
);
|
);
|
||||||
|
|
||||||
activationScript = pkgs.writeScript "activation-script" ''
|
activationScript = pkgs.writeScript "activation-script" ''
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,7 @@ in
|
||||||
|
|
||||||
###### interface
|
###### interface
|
||||||
|
|
||||||
options = {
|
options = { };
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
###### implementation
|
###### implementation
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,8 @@ let
|
||||||
target = mkDefault name;
|
target = mkDefault name;
|
||||||
source = mkIf (config.text != null) (
|
source = mkIf (config.text != null) (
|
||||||
let name' = "etc-" + baseNameOf name;
|
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
|
###### interface
|
||||||
|
|
||||||
options = {
|
options = { };
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
###### implementation
|
###### implementation
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,7 @@ with lib;
|
||||||
|
|
||||||
###### interface
|
###### interface
|
||||||
|
|
||||||
options = {
|
options = { };
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
###### implementation
|
###### implementation
|
||||||
|
|
|
||||||
|
|
@ -40,10 +40,12 @@ let
|
||||||
name = "nixpkgs-config";
|
name = "nixpkgs-config";
|
||||||
description = "nixpkgs config";
|
description = "nixpkgs config";
|
||||||
check = x:
|
check = x:
|
||||||
let traceXIfNot = c:
|
let
|
||||||
|
traceXIfNot = c:
|
||||||
if c x then true
|
if c x then true
|
||||||
else lib.traceSeqN 1 x false;
|
else lib.traceSeqN 1 x false;
|
||||||
in traceXIfNot isConfig;
|
in
|
||||||
|
traceXIfNot isConfig;
|
||||||
merge = args: fold (def: mergeConfig def.value) { };
|
merge = args: fold (def: mergeConfig def.value) { };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,11 @@
|
||||||
# Copyright (c) 2019-2022, see AUTHORS. Licensed under MIT License, see LICENSE.
|
# Copyright (c) 2019-2022, see AUTHORS. Licensed under MIT License, see LICENSE.
|
||||||
|
|
||||||
{ stdenv, fetchFromGitHub, talloc,
|
{ stdenv
|
||||||
static ? true, outputBinaryName ? "proot-static" }:
|
, fetchFromGitHub
|
||||||
|
, talloc
|
||||||
|
, static ? true
|
||||||
|
, outputBinaryName ? "proot-static"
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "proot-termux";
|
pname = "proot-termux";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue