Skip to content

Commit

Permalink
Move to using nixci from nix-build-all
Browse files Browse the repository at this point in the history
nixci provides a cleaner interface to the devour-flake

Signed-off-by: Brian McGillion <[email protected]>
  • Loading branch information
brianmcgillion committed Mar 30, 2024
1 parent fc84b23 commit 389b25c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 60 deletions.
17 changes: 0 additions & 17 deletions flake.lock

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

6 changes: 0 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,6 @@
inputs.systems.follows = "systems";
};

# Used to evaluate a flake outputs all at once
devour-flake = {
url = "github:srid/devour-flake";
flake = false;
};

#
# Target Building and services
#
Expand Down
56 changes: 19 additions & 37 deletions nix/devshell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,43 +15,25 @@
system,
...
}: {
devShells.default = let
nix-build-all = pkgs.writeShellApplication {
name = "nix-build-all";
runtimeInputs = let
devour-flake = pkgs.callPackage inputs.devour-flake {};
in [
pkgs.nix
devour-flake
];
text = ''
# Make sure that flake.lock is sync
nix flake lock --no-update-lock-file
devShells.default = pkgs.mkShell {
name = "Ghaf devshell";
#TODO look at adding Mission control etc here
packages = with pkgs;
[
git
nix
nixci
nixos-rebuild
reuse
alejandra
mdbook
inputs'.nix-fast-build.packages.default
self'.packages.kernel-hardening-checker
]
++ lib.optional (pkgs.hostPlatform.system != "riscv64-linux") cachix;

# Do a full nix build (all outputs)
devour-flake . "$@"
'';
};
in
pkgs.mkShell {
name = "Ghaf devshell";
#TODO look at adding Mission control etc here
packages = with pkgs;
[
git
nix
nixos-rebuild
reuse
alejandra
mdbook
nix-build-all
inputs'.nix-fast-build.packages.default
self'.packages.kernel-hardening-checker
]
++ lib.optional (pkgs.hostPlatform.system != "riscv64-linux") cachix;

# TODO Add pre-commit.devShell (needs to exclude RiscV)
# https://flake.parts/options/pre-commit-hooks-nix
};
# TODO Add pre-commit.devShell (needs to exclude RiscV)
# https://flake.parts/options/pre-commit-hooks-nix
};
};
}

0 comments on commit 389b25c

Please sign in to comment.