Skip to content

Commit

Permalink
Merge pull request #2771 from IntersectMBO/nodepkgs_var
Browse files Browse the repository at this point in the history
feat: refactor flake.nix to use nodePkgs variable
  • Loading branch information
mkoura authored Nov 19, 2024
2 parents 6d85e4e + cb777c5 commit c49b817
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
(system:
let
pkgs = nixpkgs.legacyPackages.${system};
py3pkgs = pkgs.python311Packages;
nodePkgs = cardano-node.packages.${system};
py3Pkgs = pkgs.python311Packages;
py3Full = pkgs.python311Full;
in
{
Expand All @@ -33,13 +34,13 @@
};
venv = pkgs.mkShell {
nativeBuildInputs = base.nativeBuildInputs ++ postgres.nativeBuildInputs ++ [
cardano-node.packages.${system}.cardano-cli
cardano-node.packages.${system}.cardano-node
cardano-node.packages.${system}.cardano-submit-api
cardano-node.packages.${system}.bech32
nodePkgs.cardano-cli
nodePkgs.cardano-node
nodePkgs.cardano-submit-api
nodePkgs.bech32
pkgs.poetry
py3Full
py3pkgs.virtualenv
py3Pkgs.virtualenv
];
};
# Use 'venv' directly as 'default' and 'dev'
Expand Down

0 comments on commit c49b817

Please sign in to comment.