Skip to content

Commit

Permalink
lint nix
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Oct 31, 2024
1 parent 9f465b2 commit 817f2d2
Showing 1 changed file with 32 additions and 30 deletions.
62 changes: 32 additions & 30 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
};

outputs =
{
self,
nixpkgs,
nix-bundle-exe,
gomod2nix,
flake-utils,
{ self
, nixpkgs
, nix-bundle-exe
, gomod2nix
, flake-utils
,
}:
let
rev = self.shortRev or "dirty";
Expand Down Expand Up @@ -104,30 +104,32 @@
];
};
binaries = builtins.listToAttrs (
builtins.map (
{ network, pkgtype }:
{
name = builtins.concatStringsSep "-" (
[ "chain-maind" ]
++ lib.optional (network != "mainnet") network
++ lib.optional (pkgtype != "nix") pkgtype
);
value =
let
chain-maind = callPackage ./. {
inherit rev network;
};
bundle =
if stdenv.hostPlatform.isWindows then bundle-win-exe chain-maind else bundle-exe chain-maind;
in
if pkgtype == "bundle" then
bundle
else if pkgtype == "tarball" then
make-tarball bundle
else
chain-maind;
}
) matrix
builtins.map
(
{ network, pkgtype }:
{
name = builtins.concatStringsSep "-" (
[ "chain-maind" ]
++ lib.optional (network != "mainnet") network
++ lib.optional (pkgtype != "nix") pkgtype
);
value =
let
chain-maind = callPackage ./. {
inherit rev network;
};
bundle =
if stdenv.hostPlatform.isWindows then bundle-win-exe chain-maind else bundle-exe chain-maind;
in
if pkgtype == "bundle" then
bundle
else if pkgtype == "tarball" then
make-tarball bundle
else
chain-maind;
}
)
matrix
);
in
{
Expand Down

0 comments on commit 817f2d2

Please sign in to comment.