Skip to content

Commit

Permalink
nix: clean flake inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Jun 30, 2024
1 parent ab24564 commit db386e9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 44 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
trusted-substituters = https://gepetto.cachix.org
trusted-public-keys = gepetto.cachix.org-1:toswMl31VewC0jGkN6+gOelO2Yom0SOHzPwJMY2XiDY=
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix build --accept-flake-config
- run: nix --accept-flake-config build -L
- run: nix --accept-flake-config run .#cachix push gepetto $(readlink result)
env:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
27 changes: 2 additions & 25 deletions flake.lock

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

29 changes: 15 additions & 14 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,20 @@
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
hpp-util = {
url = "github:humanoid-path-planner/hpp-util/release/5.1.0";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
};
hpp-core = {
url = "github:humanoid-path-planner/hpp-core/release/5.1.0";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
inputs.hpp-util.follows = "hpp-util";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-parts.follows = "flake-parts";
};
};
hpp-template-corba = {
url = "github:humanoid-path-planner/hpp-template-corba/release/5.1.0";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
inputs.hpp-util.follows = "hpp-util";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-parts.follows = "flake-parts";
hpp-util.follows = "hpp-core/hpp-constraints/hpp-util";
};
};
};

Expand All @@ -49,9 +47,12 @@
...
}:
{
packages.default = pkgs.callPackage ./. {
hpp-core = inputs.hpp-core.packages.${system}.default;
hpp-template-corba = inputs.hpp-template-corba.packages.${system}.default;
packages = {
inherit (pkgs) cachix;
default = pkgs.callPackage ./. {
hpp-core = inputs.hpp-core.packages.${system}.default;
hpp-template-corba = inputs.hpp-template-corba.packages.${system}.default;
};
};
devShells.default = pkgs.mkShell { inputsFrom = [ self'.packages.default ]; };
};
Expand Down

0 comments on commit db386e9

Please sign in to comment.