Skip to content

Commit

Permalink
Add flattened dss to nix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Fredén committed Nov 10, 2019
1 parent 46155a5 commit d65bfae
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}: with pkgs;

let
inherit (builtins) replaceStrings;
inherit (builtins) replaceStrings attrValues;
inherit (lib) mapAttrs optionalAttrs id;
# Get contract dependencies from lock file
inherit (callPackage ./dapp2.nix { inherit srcRoot; }) specs packageSpecs package;
Expand Down Expand Up @@ -58,12 +58,13 @@ let
flatten = true;
});

solidityPackages' = (builtins.attrValues packages) ++ [ dss-proxy-actions-optimized ];
solidityPackages = solidityPackages';
dss-flat = package (deps.dss-deploy.deps.dss // {
inherit doCheck;
name = "dss-flat";
flatten = true;
});

in makerScriptPackage {
inherit solidityPackages;

name = "dss-deploy-scripts";

# Specify files to add to build environment
Expand All @@ -74,6 +75,13 @@ in makerScriptPackage {
".*lib.*"
];

solidityPackages =
(attrValues packages)
++ [
dss-proxy-actions-optimized
dss-flat
];

extraBins = [
dss-deploy'
];
Expand Down

0 comments on commit d65bfae

Please sign in to comment.