Skip to content

Commit

Permalink
Merge pull request #187 from louib-bitgo/BG-00000-nix-formatting
Browse files Browse the repository at this point in the history
chore: Use alejandra for Nix formatting
  • Loading branch information
ericcrosson-bitgo authored Aug 16, 2022
2 parents a6e0134 + 8c0fdb9 commit 796d7fe
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 12 deletions.
15 changes: 11 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@
};
};

outputs = { self, nixpkgs, flake-utils, flake-compat }:
flake-utils.lib.eachDefaultSystem
(system:
outputs = {
self,
nixpkgs,
flake-utils,
flake-compat,
}: (
flake-utils.lib.eachDefaultSystem (
system: (
let
pkgs = nixpkgs.legacyPackages.${system};
in {
Expand All @@ -28,5 +33,7 @@
'';
};
}
);
)
)
);
}
20 changes: 12 additions & 8 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
(import
(
import
(
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in
fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
}
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in
fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
}
)
{ src = ./.; }
).shellNix
{src = ./.;}
)
.shellNix

0 comments on commit 796d7fe

Please sign in to comment.