Skip to content

Commit

Permalink
refact: Use flake-parts.flakeModules.partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Aug 29, 2024
1 parent c303cc8 commit e9e9164
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 187 deletions.
7 changes: 4 additions & 3 deletions flake.lock

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

8 changes: 4 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description = "Hercules CI Agent";

inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.flake-parts.url = "github:hercules-ci/flake-parts";
inputs.flake-parts.url = "github:hercules-ci/flake-parts/partition";
inputs.flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
inputs.haskell-flake.url = "github:srid/haskell-flake/0.3.0";

Expand Down Expand Up @@ -84,17 +84,17 @@
flake-parts.lib.mkFlake { inherit inputs; } (flakeArgs@{ config, lib, inputs, ... }: {
imports = [
inputs.flake-parts.flakeModules.easyOverlay
inputs.flake-parts.flakeModules.partitions
inputs.haskell-flake.flakeModule
./nix/variants.nix
./nix/flake-private-dev-inputs.nix
./docs/flake-docs-render.nix
];
config = {
privateDevInputSubflakePath = "dev/private";
partitionedAttrs.checks = "dev";
partitionedAttrs.devShells = "dev";
partitionedAttrs.herculesCI = "dev";
partitions.dev.settings = { inputs, ... }: {
partitions.dev.extraInputsFlake = ./dev/private;
partitions.dev.module = { inputs, ... }: {
imports = [
./nix/development.nix
./nix/flake-update-pre-commit.nix
Expand Down
135 changes: 0 additions & 135 deletions nix/flake-partitions.nix

This file was deleted.

45 changes: 0 additions & 45 deletions nix/flake-private-dev-inputs.nix

This file was deleted.

0 comments on commit e9e9164

Please sign in to comment.