Skip to content

Commit

Permalink
flake: rename outputs, remove cctl_2 input
Browse files Browse the repository at this point in the history
  • Loading branch information
marijanp committed Aug 29, 2024
1 parent 59ec716 commit 31227f1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 185 deletions.
204 changes: 25 additions & 179 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 4 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
advisory-db.url = "github:rustsec/advisory-db";
advisory-db.flake = false;
cctl.url = "github:casper-network/cctl/947c34b991e37476db82ccfa2bd7c0312c1a91d7";
cctl-2.url = "github:casper-network/cctl";
csprpkgs.url = "github:cspr-rad/csprpkgs";
csprpkgs.url = "github:cspr-rad/csprpkgs/3bc835d3b73a5d5a5829f3b8506f51a9cd098abd";
};

outputs = inputs@{ flake-parts, treefmt-nix, ... }:
Expand All @@ -44,6 +43,7 @@
rustToolchain = inputs'.fenix.packages.stable.toolchain;
craneLib = (inputs.crane.mkLib pkgs).overrideToolchain rustToolchain;

# revision 3bc835d contains casper-node 1.5.7
cctl = inputs'.cctl.packages.cctl.override { casper-node = inputs'.csprpkgs.packages.casper-node; };

cctlAttrs = {
Expand Down Expand Up @@ -85,12 +85,9 @@
};

packages = {
cctl-rs-deps = craneLib.buildDepsOnly (cctlAttrs // {
pname = "cctl-rs-deps";
});
cctl-rs-deps = craneLib.buildDepsOnly cctlAttrs;

cctl-rs-docs = craneLib.cargoDoc (cctlAttrs // {
pname = "cctl-rs-docs";
cargoArtifacts = self'.packages.cctl-rs-deps;
});

Expand All @@ -115,6 +112,7 @@

checks = {
lint = craneLib.cargoClippy (cctlAttrs // {
pname = "cctl-rs-lint";
cargoArtifacts = self'.packages.cctl-rs-deps;
cargoClippyExtraArgs = "--all-targets -- --deny warnings";
});
Expand Down

0 comments on commit 31227f1

Please sign in to comment.