Skip to content

Commit

Permalink
treewide: add suffix to overridden pname
Browse files Browse the repository at this point in the history
  • Loading branch information
nikstur committed Jul 16, 2024
1 parent 81d8091 commit 1947f3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,12 @@

checks = {
clippy = transformer.overrideAttrs (_: previousAttrs: {
pname = previousAttrs.pname + "-clippy";
nativeCheckInputs = (previousAttrs.nativeCheckInputs or [ ]) ++ [ pkgs.clippy ];
checkPhase = "cargo clippy";
});
rustfmt = transformer.overrideAttrs (_: previousAttrs: {
pname = previousAttrs.pname + "-rustfmt";
nativeCheckInputs = (previousAttrs.nativeCheckInputs or [ ]) ++ [ pkgs.rustfmt ];
checkPhase = "cargo fmt --check";
});
Expand Down
1 change: 1 addition & 0 deletions nix/passthru-vendored.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
(previousAttrs: {
passthru = (previousAttrs.passthru or { }) // {
bombonVendoredSbom = package.overrideAttrs (previousAttrs: {
pname = previousAttrs.pname + "-bombon-vendored-sbom";
nativeBuildInputs = (previousAttrs.nativeBuildInputs or [ ]) ++ [ pkgs.cargo-cyclonedx ];
outputs = [ "out" ];
phases = [ "unpackPhase" "patchPhase" "configurePhase" "buildPhase" "installPhase" ];
Expand Down

0 comments on commit 1947f3f

Please sign in to comment.