Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: fix build workflow #188

Merged
merged 2 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions flake.lock

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

37 changes: 22 additions & 15 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
outputs = {
self,
flake-parts,
nixpkgs,
systems,
...
} @ inputs:
Expand All @@ -32,19 +31,25 @@
# provide the formatter for nix fmt
formatter = pkgs.alejandra;

devShells.default = pkgs.mkShell {
inputsFrom = builtins.attrValues self'.packages;
devShells = {
default = pkgs.mkShell {
inputsFrom = builtins.attrValues self'.packages;
packages = with pkgs; [
rustc # rust compiler
gcc
cargo # rust package manager
clippy # opinionated rust formatter
];
};

packages = with pkgs; [
alejandra # nix formatter
rustfmt # rust formatter
statix # lints and suggestions
deadnix # clean up unused nix code
rustc # rust compiler
gcc
cargo # rust package manager
clippy # opinionated rust formatter
];
nix = pkgs.mkShellNoCC {
packages = with pkgs; [
alejandra # nix formatter
rustfmt # rust formatter
statix # lints and suggestions
deadnix # clean up unused nix code
];
};
};

packages = let
Expand All @@ -60,9 +65,11 @@
};
in {
default = self'.packages.anyrun;
anyrun = callPackage ./nix/default.nix {inherit inputs lockFile;};

anyrun-with-all-plugins = pkgs.callPackage ./nix/default.nix {
# By default the anyrun package is built without any plugins
# as per the `dontBuildPlugins` arg.
anyrun = callPackage ./nix/default.nix {inherit inputs lockFile;};
anyrun-with-all-plugins = callPackage ./nix/default.nix {
inherit inputs lockFile;
dontBuildPlugins = false;
};
Expand Down
Loading