Skip to content

Commit

Permalink
nix: Switch to nixfmt for formatting of Flake
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
  • Loading branch information
stv0g committed May 20, 2024
1 parent b90574e commit 2196f88
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};

outputs = {
self,
flake-utils,
nixpkgs,
}:
flake-utils.lib.eachDefaultSystem
(
system: let
outputs =
{
self,
flake-utils,
nixpkgs,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in rec {
in
rec {
packages.gont = pkgs.buildGoModule {
name = "gont";
src = ./.;
vendorHash = "sha256-QOh1jBR7FL/fKFmJv7wGxuCghRLR3DV/0TzXd+bUFP0=";
buildInputs = with pkgs; [
libpcap
];
buildInputs = with pkgs; [ libpcap ];
doCheck = false;
};

Expand All @@ -38,12 +38,10 @@
packages.gont
];

inputsFrom = [
packages.gont
];
inputsFrom = [ packages.gont ];
};

formatter = nixpkgs.alejandra;
formatter = nixpkgs.nixfmt-rfc-style;
}
);
}

0 comments on commit 2196f88

Please sign in to comment.