Skip to content

Commit 4b11792

Browse files
committed
Run nixpkgs-fmt
1 parent 0d8b40e commit 4b11792

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
outputs = _: {
33
flakeModule = ./nix/flake-module.nix;
44

5-
templates.default = {
5+
templates.default = {
66
description = "Example flake using process-compose-flake";
77
path = builtins.path { path = ./example; filter = path: _: baseNameOf path == "flake.nix"; };
88
};

nix/process-compose/cli.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
{ config, lib, ... }:
1+
{ config, lib, ... }:
22

3-
let
3+
let
44
inherit (lib) types mkOption;
5-
in
5+
in
66
{
77
options = {
88
port = mkOption {

nix/process-compose/default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
{ name, config, pkgs, lib, ... }:
1+
{ name, config, pkgs, lib, ... }:
22

3-
let
3+
let
44
inherit (lib) types mkOption;
5-
in
5+
in
66
{
77
imports = [
88
./cli.nix

nix/process-compose/settings/command.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ args:
44
lib.mkOption (args // {
55
type = lib.types.either lib.types.package lib.types.str;
66
apply = pkg:
7-
if builtins.isString pkg
8-
# process-compose is unreliable in handling environment variable, so let's
9-
# wrap it in a bash script.
10-
then lib.getExe (pkgs.writeShellApplication { inherit name; text = pkg; })
11-
else lib.getExe pkg;
7+
if builtins.isString pkg
8+
# process-compose is unreliable in handling environment variable, so let's
9+
# wrap it in a bash script.
10+
then lib.getExe (pkgs.writeShellApplication { inherit name; text = pkg; })
11+
else lib.getExe pkg;
1212
})

nix/process-compose/settings/environment.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ let
44
inherit (types) nullOr either listOf str attrsOf;
55
in
66
lib.mkOption {
7-
type =
8-
nullOr
7+
type =
8+
nullOr
99
(either (listOf str) (attrsOf str));
1010
default = null;
11-
example = { ABC="2221"; PRINT_ERR="111"; };
11+
example = { ABC = "2221"; PRINT_ERR = "111"; };
1212
description = ''
1313
Attrset of environment variables.
1414
1515
List of strings is also allowed.
1616
'';
1717
apply = attrs:
18-
if ! builtins.isAttrs attrs then attrs else
18+
if ! builtins.isAttrs attrs then attrs else
1919
lib.mapAttrsToList (name: value: "${name}=${value}") attrs;
2020
}

0 commit comments

Comments
 (0)