Skip to content

Commit

Permalink
flake: remove unneeded override and flake input
Browse files Browse the repository at this point in the history
  • Loading branch information
marijanp committed Aug 29, 2024
1 parent 59ec716 commit 1ac16af
Show file tree
Hide file tree
Showing 2 changed files with 28 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.

9 changes: 3 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
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";
};

Expand All @@ -44,7 +43,7 @@
rustToolchain = inputs'.fenix.packages.stable.toolchain;
craneLib = (inputs.crane.mkLib pkgs).overrideToolchain rustToolchain;

cctl = inputs'.cctl.packages.cctl.override { casper-node = inputs'.csprpkgs.packages.casper-node; };
cctl = inputs'.cctl.packages.cctl;

cctlAttrs = {
pname = "cctl-rs";
Expand Down Expand Up @@ -85,12 +84,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 +111,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 1ac16af

Please sign in to comment.